]> source.dussan.org Git - jackcess.git/commitdiff
oops was not updating entry size
authorJames Ahlborn <jtahlborn@yahoo.com>
Sat, 19 Apr 2008 01:05:59 +0000 (01:05 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Sat, 19 Apr 2008 01:05:59 +0000 (01:05 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@335 f203690c-595d-4dc9-a70b-905162fa7fd2

src/java/com/healthmarketscience/jackcess/SimpleIndex.java

index 4dee57c1534dc1052a902267f40205278ffbf379..35ef662c76f0391b5e9c3a6ea45e01f09ff6aa7c 100644 (file)
@@ -208,10 +208,13 @@ public class SimpleIndex extends Index {
     @Override
     public void addEntry(int idx, Entry entry) {
       _entries.add(idx, entry);
+      _totalEntrySize += entry.size();
     }
 
+    @Override
     public void removeEntry(int idx) {
-      _entries.remove(idx);
+      Entry oldEntry = _entries.remove(idx);
+      _totalEntrySize -= oldEntry.size();
     }
     
   }