We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c32b35e commit 8afaeaeCopy full SHA for 8afaeae
1 file changed
src/jrd/pag.cpp
@@ -2318,7 +2318,9 @@ ULONG PageSpace::lastUsedPage()
2318
CCH_RELEASE(tdbb, &window);
2319
pipMaxKnown = pipLast;
2320
2321
- return last_bit + 1 + (pipLast == pipFirst ? 0 : pipLast);
+ if (pipLast == pipFirst)
2322
+ return last_bit > 0 ? last_bit : 0;
2323
+ return pipLast + last_bit + 1;
2324
}
2325
2326
ULONG PageSpace::lastUsedPage(const Database* dbb)
0 commit comments