GC before transitioning a L0 to reader
The L0 Pid has used a lot of memory in the construction of the file (something like 50MB). This won't be GC'd immediately. This is fine, as this will normally be short-lived. However if the SST file is switched levels ... then this may mean thta we have multiple SST files with memory not being GC'd.
This commit is contained in:
parent
da06ef133c
commit
95c27a835b
2 changed files with 16 additions and 2 deletions
|
@ -186,8 +186,9 @@ merge(SrcLevel, Manifest, RootPath, OptsSST) ->
|
|||
leveled_log:log("PC008", [SrcLevel, Candidates]),
|
||||
case Candidates of
|
||||
0 ->
|
||||
leveled_log:log("PC009",
|
||||
[Src#manifest_entry.filename, SrcLevel + 1]),
|
||||
NewLevel = SrcLevel + 1,
|
||||
leveled_log:log("PC009", [Src#manifest_entry.filename, NewLevel]),
|
||||
leveled_sst:sst_switchlevels(Src#manifest_entry.owner, NewLevel),
|
||||
Man0 = leveled_pmanifest:switch_manifest_entry(Manifest,
|
||||
NewSQN,
|
||||
SrcLevel,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue