forestdb: fix using. uncomment some code.
parent
936333f1b7
commit
a1914959d3
|
@ -316,9 +316,10 @@ PRIVATE>
|
||||||
|
|
||||||
: fdb-default-config-auto-commit ( -- config )
|
: fdb-default-config-auto-commit ( -- config )
|
||||||
fdb_get_default_config
|
fdb_get_default_config
|
||||||
FDB_SEQTREE_USE >>seqtree_opt ;
|
FDB_SEQTREE_USE >>seqtree_opt
|
||||||
! FDB_COMPACTION_AUTO >>compaction_mode
|
FDB_COMPACTION_AUTO >>compaction_mode
|
||||||
! t >>auto_commit ;
|
1 >>compactor_sleep_duration
|
||||||
|
t >>auto_commit ;
|
||||||
|
|
||||||
! Make SEQTREES by default
|
! Make SEQTREES by default
|
||||||
: fdb-open-default-config ( path -- file-handle )
|
: fdb-open-default-config ( path -- file-handle )
|
||||||
|
@ -358,6 +359,11 @@ PRIVATE>
|
||||||
[ FDB_ITR_NONE \ fdb-iterator-byseq-init \ fdb_iterator_next ] dip
|
[ FDB_ITR_NONE \ fdb-iterator-byseq-init \ fdb_iterator_next ] dip
|
||||||
with-fdb-map ; inline
|
with-fdb-map ; inline
|
||||||
|
|
||||||
|
! : changes-cb ( handle doc ctx -- changes_decision )
|
||||||
|
! ;
|
||||||
|
|
||||||
|
! : fdb-changes-since ( seqnum iterator_opt cb ctx -- seq )
|
||||||
|
! f 101 FDB_ITR_NONE fdb_changes_since ;
|
||||||
|
|
||||||
: with-kvs ( name quot -- )
|
: with-kvs ( name quot -- )
|
||||||
[
|
[
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
! Copyright (C) 2014 Doug Coleman.
|
! Copyright (C) 2014 Doug Coleman.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: assocs continuations forestdb.lib fry io.directories
|
USING: assocs continuations forestdb.lib fry io.directories
|
||||||
io.files.temp kernel math.parser math.ranges sequences ;
|
io.files.temp io.files.unique kernel math.parser math.ranges
|
||||||
|
sequences ;
|
||||||
IN: forestdb.utils
|
IN: forestdb.utils
|
||||||
|
|
||||||
: with-forestdb-test-db-kvs ( name quot -- )
|
: with-forestdb-test-db-kvs ( name quot -- )
|
||||||
|
|
Loading…
Reference in New Issue