forestdb: fix using. uncomment some code.

locals-and-roots
Doug Coleman 2016-05-20 20:01:15 -07:00
parent 936333f1b7
commit a1914959d3
2 changed files with 11 additions and 4 deletions

View File

@ -316,9 +316,10 @@ PRIVATE>
: fdb-default-config-auto-commit ( -- config )
fdb_get_default_config
FDB_SEQTREE_USE >>seqtree_opt ;
! FDB_COMPACTION_AUTO >>compaction_mode
! t >>auto_commit ;
FDB_SEQTREE_USE >>seqtree_opt
FDB_COMPACTION_AUTO >>compaction_mode
1 >>compactor_sleep_duration
t >>auto_commit ;
! Make SEQTREES by default
: fdb-open-default-config ( path -- file-handle )
@ -358,6 +359,11 @@ PRIVATE>
[ FDB_ITR_NONE \ fdb-iterator-byseq-init \ fdb_iterator_next ] dip
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 -- )
[

View File

@ -1,7 +1,8 @@
! Copyright (C) 2014 Doug Coleman.
! See http://factorcode.org/license.txt for BSD license.
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
: with-forestdb-test-db-kvs ( name quot -- )