From 3d0994bb113d816e3f86493bf18bc93f665159dd Mon Sep 17 00:00:00 2001 From: russelldb-bet365 Date: Tue, 28 Feb 2017 17:38:28 +0000 Subject: [PATCH] `recovr` is not a valid sync strategy If you follow the instructions in `Running Leveled` the error: {error,{{badmatch,{error,{{{case_clause,recovr}, Is shown --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e06103c..3854df1 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ A new database can be started by running {ok, Bookie} = leveled_bookie:book_start(RootPath, LedgerCacheSize, JournalSize, SyncStrategy) ``` -This will start a new Bookie. It will start and look for existing data files, under the RootPath, and start empty if none exist. A LedgerCacheSize of 2000, a JournalSize of 500000000 (500MB) and a SyncStrategy of recovr should work OK. +This will start a new Bookie. It will start and look for existing data files, under the RootPath, and start empty if none exist. A LedgerCacheSize of `2000`, a JournalSize of `500000000` (500MB) and a SyncStrategy of `none` should work OK. The book_start method should respond once startup is complete. The [leveled_bookie module](src/leveled_bookie.erl) includes the full API for external use of the store. @@ -124,4 +124,4 @@ Building this from source as part of Riak will require a bit of fiddling around. - make rel - remember to set the storage backend to leveled in riak.conf -To help with the breakdown of cuttlefish, leveled parameters can be set via riak_kv/include/riak_kv_leveled.hrl - although a new make will be required for these changes to take effect. \ No newline at end of file +To help with the breakdown of cuttlefish, leveled parameters can be set via riak_kv/include/riak_kv_leveled.hrl - although a new make will be required for these changes to take effect.