aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2016-11-17 01:17:51 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2016-11-17 01:17:51 +0000
commita30708e2ce01439181dbd4dad6e3fc70b98700c4 (patch)
treee9b6d17dc7d4b47ee82a570363b21647baf4a3eb /src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java
parent7b8f4c32d54f63a584461f1911614d960b3af874 (diff)
downloadjackcess-a30708e2ce01439181dbd4dad6e3fc70b98700c4.tar.gz
jackcess-a30708e2ce01439181dbd4dad6e3fc70b98700c4.zip
Add support for global usage maps which are reference type maps. fixes issue #138
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1056 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java')
-rw-r--r--src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java b/src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java
index e5a6316..5155b16 100644
--- a/src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java
+++ b/src/main/java/com/healthmarketscience/jackcess/impl/TableImpl.java
@@ -244,9 +244,9 @@ public class TableImpl implements Table
_indexCount = tableBuffer.getInt(getFormat().OFFSET_NUM_INDEXES);
tableBuffer.position(getFormat().OFFSET_OWNED_PAGES);
- _ownedPages = UsageMap.read(getDatabase(), tableBuffer, false);
+ _ownedPages = UsageMap.read(getDatabase(), tableBuffer);
tableBuffer.position(getFormat().OFFSET_FREE_SPACE_PAGES);
- _freeSpacePages = UsageMap.read(getDatabase(), tableBuffer, false);
+ _freeSpacePages = UsageMap.read(getDatabase(), tableBuffer);
for (int i = 0; i < _indexCount; i++) {
_indexDatas.add(IndexData.create(this, tableBuffer, i, getFormat()));
@@ -1948,8 +1948,8 @@ public class TableImpl implements Table
UsageMap colOwnedPages = null;
UsageMap colFreeSpacePages = null;
try {
- colOwnedPages = UsageMap.read(getDatabase(), tableBuffer, false);
- colFreeSpacePages = UsageMap.read(getDatabase(), tableBuffer, false);
+ colOwnedPages = UsageMap.read(getDatabase(), tableBuffer);
+ colFreeSpacePages = UsageMap.read(getDatabase(), tableBuffer);
} catch(IllegalStateException e) {
// ignore invalid usage map info
colOwnedPages = null;
@@ -2547,7 +2547,7 @@ public class TableImpl implements Table
if(modifiedPage) {
writeDataPage(dataPage, pageNumber);
}
- _freeSpacePages.removePageNumber(pageNumber, true);
+ _freeSpacePages.removePageNumber(pageNumber);
dataPage = newDataPage();
}