diff --git a/src/leveled_bookie.erl b/src/leveled_bookie.erl index c76e104..cd5a074 100644 --- a/src/leveled_bookie.erl +++ b/src/leveled_bookie.erl @@ -153,7 +153,7 @@ -include_lib("eunit/include/eunit.hrl"). --define(CACHE_SIZE, 1600). +-define(CACHE_SIZE, 2000). -define(JOURNAL_FP, "journal"). -define(LEDGER_FP, "ledger"). -define(SHUTDOWN_WAITS, 60). @@ -194,17 +194,6 @@ book_put(Pid, Bucket, Key, Object, IndexSpecs) -> book_put(Pid, Bucket, Key, Object, IndexSpecs, Tag) -> book_put(Pid, Bucket, Key, Object, IndexSpecs, Tag, infinity). - - -%% TODO: -%% It is not enough simply to change the value to delete, as the journal -%% needs to know the key is a tombstone at compaction time, and currently at -%% compaction time the clerk only knows the Key and not the Value. -%% -%% The tombstone cannot be removed from the Journal on compaction, as the -%% journal entry the tombstone deletes may not have been reaped - and so if the -%% ledger got erased, the value would be resurrected. - book_riakdelete(Pid, Bucket, Key, IndexSpecs) -> book_put(Pid, Bucket, Key, delete, IndexSpecs, ?RIAK_TAG).