From 443f781c233ea3666bb973d0b7c3ffbc52923566 Mon Sep 17 00:00:00 2001 From: mbdavid Date: Sat, 10 Feb 2018 08:52:41 -0200 Subject: [PATCH] Fix shrink lock page #892 --- Engine/Engine/Shrink.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Engine/Engine/Shrink.cs b/Engine/Engine/Shrink.cs index cc909cddd..5e9c3ee5b 100644 --- a/Engine/Engine/Shrink.cs +++ b/Engine/Engine/Shrink.cs @@ -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);