Don't bother adding 2 when picking an LPN for fill & trim
This commit is contained in:
parent
d2562588f2
commit
5edee3a2cf
1 changed files with 2 additions and 2 deletions
|
@ -676,7 +676,7 @@ scan_forward(#run{seq=Seq, proj=Proj}, SeedInt, NumPages) ->
|
|||
end).
|
||||
|
||||
fill(#run{seq=Seq, proj=Proj}, SeedInt) ->
|
||||
LPN = pick_an_LPN(Seq, SeedInt) + 2,
|
||||
LPN = pick_an_LPN(Seq, SeedInt),
|
||||
?LOG({fill, LPN},
|
||||
begin
|
||||
Res = corfurl:fill_page(Proj, LPN),
|
||||
|
@ -684,7 +684,7 @@ fill(#run{seq=Seq, proj=Proj}, SeedInt) ->
|
|||
end).
|
||||
|
||||
trim(#run{seq=Seq, proj=Proj}, SeedInt) ->
|
||||
LPN = pick_an_LPN(Seq, SeedInt) + 2,
|
||||
LPN = pick_an_LPN(Seq, SeedInt),
|
||||
?LOG({trim, LPN},
|
||||
begin
|
||||
Res = corfurl:trim_page(Proj, LPN),
|
||||
|
|
Loading…
Reference in a new issue