Skip to content

Commit

Permalink
Fix shrink lock page litedb-org#892
Browse files Browse the repository at this point in the history
  • Loading branch information
mbdavid committed Feb 10, 2018
1 parent 0994923 commit 443f781
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Engine/Engine/Shrink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ public long Shrink(string password = null, IDiskService tempDisk = null)
// copy (as is) all pages from temp disk to original disk
for (uint i = 0; i <= header.LastPageID; i++)
{
// skip lock page
if (i == 1) continue;

var page = temp.ReadPage(i);

_disk.WritePage(i, page);
Expand Down

0 comments on commit 443f781

Please # to comment.