Fold API to leveled_sst
Externally to leveled_sst all folds are actually managed through exapnd_list_by_pointer. Make the API a bit clearer in this regards, and add specs to help dialyzer. This also adds LowLastMod to the API for expanding pointers (although the leveled_penciller just defaults this to 0 for everything.
This commit is contained in:
parent
bdd1762130
commit
b7e697f7f0
2 changed files with 225 additions and 150 deletions
|
@ -1519,10 +1519,11 @@ find_nextkey(QueryArray, LCnt,
|
|||
% The first key at this level is pointer to a file - need to query
|
||||
% the file to expand this level out before proceeding
|
||||
Pointer = {next, Owner, StartKey, EndKey},
|
||||
UpdList = leveled_sst:expand_list_by_pointer(Pointer,
|
||||
RestOfKeys,
|
||||
Width,
|
||||
SegList),
|
||||
UpdList = leveled_sst:sst_expandpointer(Pointer,
|
||||
RestOfKeys,
|
||||
Width,
|
||||
SegList,
|
||||
0),
|
||||
NewEntry = {LCnt, UpdList},
|
||||
% Need to loop around at this level (LCnt) as we have not yet
|
||||
% examined a real key at this level
|
||||
|
@ -1535,10 +1536,11 @@ find_nextkey(QueryArray, LCnt,
|
|||
% The first key at this level is pointer within a file - need to
|
||||
% query the file to expand this level out before proceeding
|
||||
Pointer = {pointer, SSTPid, Slot, PSK, PEK},
|
||||
UpdList = leveled_sst:expand_list_by_pointer(Pointer,
|
||||
RestOfKeys,
|
||||
Width,
|
||||
SegList),
|
||||
UpdList = leveled_sst:sst_expandpointer(Pointer,
|
||||
RestOfKeys,
|
||||
Width,
|
||||
SegList,
|
||||
0),
|
||||
NewEntry = {LCnt, UpdList},
|
||||
% Need to loop around at this level (LCnt) as we have not yet
|
||||
% examined a real key at this level
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue