Don't bother adding 2 when picking an LPN for fill & trim

This commit is contained in:
Scott Lystig Fritchie 2014-02-20 19:17:17 +09:00
parent d2562588f2
commit 5edee3a2cf

View file

@ -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),