Stopped unnecessary seek for last_key

When rolling we already know the last_key - no need to seek for it on
startup.

The time it takes for this seek needs to be considered with regards to
startup time.  Can we do without knowing lastkey?
This commit is contained in:
martinsumner 2016-12-22 19:51:39 +00:00
parent 44cf5788ab
commit 0ddaaf9ac3
3 changed files with 17 additions and 6 deletions

View file

@ -77,7 +77,7 @@ many_put_fetch_head(_Config) ->
testutil:check_forobject(Bookie1, TestObject),
ok = leveled_bookie:book_close(Bookie1),
StartOpts2 = [{root_path, RootPath},
{max_journalsize, 1000000000},
{max_journalsize, 500000000},
{max_pencillercachesize, 32000},
{sync_strategy, testutil:sync_strategy()}],
{ok, Bookie2} = leveled_bookie:book_start(StartOpts2),