rdf-lmdb 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/rdf/lmdb/version.rb +1 -1
- data/lib/rdf/lmdb.rb +7 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b3de93b03813af13ae138031edf83b640c176c249da0a83505fea9b324b08267
|
|
4
|
+
data.tar.gz: 406f8a21e169b99d93b18ad9a5433abc5225693a8f3ccf8a839a61d5e643e340
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dceb7470c2c4cc6c0ba1cd9d00536699ea34328dd898bbcb30c43004652f57587f73b818885d5cf166ee073073f2a7772ee1a7a97397d5ea326c0a0520001fcf
|
|
7
|
+
data.tar.gz: '08b249321f9728e9e54a2269b30fd9220a36426a0d17ed8a802b07931b52abaceeccbb7b323712c717ae040dc4665c49516a47db95f157cdf75341292f7946b6'
|
data/lib/rdf/lmdb/version.rb
CHANGED
data/lib/rdf/lmdb.rb
CHANGED
|
@@ -118,7 +118,9 @@ module RDF
|
|
|
118
118
|
class Repository < ::RDF::Repository
|
|
119
119
|
private
|
|
120
120
|
|
|
121
|
-
LMDB_OPTS =
|
|
121
|
+
LMDB_OPTS = %i[mode maxreaders maxdbs mapsize]
|
|
122
|
+
|
|
123
|
+
LMDB_FLAGS =
|
|
122
124
|
%i[fixedmap nosubdir nosync rdonly nometasync writemap mapasync notls]
|
|
123
125
|
|
|
124
126
|
# for the mapsize parameter
|
|
@@ -158,8 +160,12 @@ module RDF
|
|
|
158
160
|
|
|
159
161
|
options[:mapsize] = int_bytes options[:mapsize] if options[:mapsize]
|
|
160
162
|
|
|
163
|
+
# warn options
|
|
164
|
+
|
|
161
165
|
@lmdb_opts = options.slice(*LMDB_OPTS)
|
|
162
166
|
|
|
167
|
+
# warn @lmdb_opts
|
|
168
|
+
|
|
163
169
|
# XXX trip over the old database layout for now
|
|
164
170
|
dbs = env.database.keys.map(&:to_sym)
|
|
165
171
|
unless dbs.empty? or dbs.include? :int2term
|