</BUG>
DedupFileStore.removeRef(p.hash, Longs.fromByteArray(p.hashloc));
}
}
<BUG>for (HashLocPair p : data.getFingers()) {
</BUG>
DedupFileStore.addRef(p.hash, Longs.fromByteArray(p.hashloc));
}
}
pbdb.write(ByteBuffer.wrap(data.getBytes()), fpos);

throw new FileClosedException("hashtable [" + this.filePath + "] is close");
}
if (Main.refCount) {
SparseDataChunk ck = this.get(pos);
if (ck != null) {
for (HashLocPair p : ck.getFingers().values()) {
DedupFileStore.removeRef(p.hash, Longs.fromByteArray(p.hashloc));
}
}
for (HashLocPair p : data.getFingers().values()) {
DedupFileStore.addRef(p.hash, Longs.fromByteArray(p.hashloc));
}
}
pbdb.write(ByteBuffer.wrap(data.getBytes()), fpos);
