diff options
author | James Ahlborn <jtahlborn@yahoo.com> | 2007-07-10 16:41:25 +0000 |
---|---|---|
committer | James Ahlborn <jtahlborn@yahoo.com> | 2007-07-10 16:41:25 +0000 |
commit | a97ce25f570f8867e93ff2e244b9dc5a8fe4b2bc (patch) | |
tree | 027770c01735426f80b8212e7f195c2c252f99e1 /src/java/com/healthmarketscience/jackcess/Table.java | |
parent | 0e545e6c735f77380bff22a1d9cb6e0a5e35ec73 (diff) | |
download | jackcess-a97ce25f570f8867e93ff2e244b9dc5a8fe4b2bc.tar.gz jackcess-a97ce25f570f8867e93ff2e244b9dc5a8fe4b2bc.zip |
rework inline usage map handling to handle out-of-range cases better and with more clarity
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@156 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/java/com/healthmarketscience/jackcess/Table.java')
-rw-r--r-- | src/java/com/healthmarketscience/jackcess/Table.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/Table.java b/src/java/com/healthmarketscience/jackcess/Table.java index 05c3257..bc04545 100644 --- a/src/java/com/healthmarketscience/jackcess/Table.java +++ b/src/java/com/healthmarketscience/jackcess/Table.java @@ -572,11 +572,13 @@ public class Table byte rowNum = tableBuffer.get(_format.OFFSET_OWNED_PAGES); int pageNum = ByteUtil.get3ByteInt(tableBuffer, _format.OFFSET_OWNED_PAGES + 1); - _ownedPages = UsageMap.read(_pageChannel, pageNum, rowNum, _format); + _ownedPages = UsageMap.read(_pageChannel, pageNum, rowNum, _format, + false); _ownedPagesIterator = _ownedPages.iterator(); rowNum = tableBuffer.get(_format.OFFSET_FREE_SPACE_PAGES); pageNum = ByteUtil.get3ByteInt(tableBuffer, _format.OFFSET_FREE_SPACE_PAGES + 1); - _freeSpacePages = UsageMap.read(_pageChannel, pageNum, rowNum, _format); + _freeSpacePages = UsageMap.read(_pageChannel, pageNum, rowNum, _format, + false); for (int i = 0; i < _indexCount; i++) { Index index = new Index(_tableDefPageNumber, _pageChannel, _format); |