Change FoldKeysFun
This commit is contained in:
parent
57727e74f9
commit
427b97873c
1 changed files with 2 additions and 1 deletions
|
@ -105,7 +105,8 @@ aae_bustedjournal(_Config) ->
|
|||
testutil:corrupt_journal(RootPath, HeadF, 1000, 2048, 1000),
|
||||
{ok, Bookie2} = leveled_bookie:book_start(StartOpts),
|
||||
|
||||
AllKeyQuery = {keylist, o_rkv, {fun testutil:foldkeysfun/3, []}},
|
||||
FoldKeysFun = fun(B, K, Acc) -> Acc ++ [{B, K}] end,
|
||||
AllKeyQuery = {keylist, o_rkv, {FoldKeysFun, []}},
|
||||
{async, KeyF} = leveled_bookie:book_returnfolder(Bookie2, AllKeyQuery),
|
||||
KeyList = KeyF(),
|
||||
20001 = length(KeyList),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue