Passing ETS reference not tree

ETS reference gets converted to tree by Penciller
This commit is contained in:
martinsumner 2017-03-13 11:54:46 +00:00
parent 121f410b8f
commit 62c3ba8b6f
2 changed files with 12 additions and 3 deletions

View file

@ -1181,7 +1181,7 @@ maybepush_ledgercache(MaxCacheSize, Cache, Penciller) ->
TimeToPush = maybe_withjitter(CacheSize, MaxCacheSize),
if
TimeToPush ->
CacheToLoad = {leveled_tree:from_orderedset(Tab, ?CACHE_TYPE),
CacheToLoad = {Tab,
Cache#ledger_cache.index,
Cache#ledger_cache.min_sqn,
Cache#ledger_cache.max_sqn},