Commit 042aacc6 authored by Andre Freyssinet's avatar Andre Freyssinet

Minor changes.

parent da4e075e
......@@ -204,6 +204,7 @@ public final class ATransaction extends AbstractTransaction implements ATransact
Object key = OperationKey.newKey(dirName, name);
Operation op = Operation.alloc(Operation.SAVE, dirName, name, buf);
Operation old = (Operation) log.put(key, op);
if (copy) {
if ((old != null) &&
(old.type == Operation.SAVE) &&
......@@ -217,7 +218,6 @@ public final class ATransaction extends AbstractTransaction implements ATransact
System.arraycopy(buf, 0, op.value, 0, buf.length);
}
if (old != null) old.free();
}
private final byte[] getFromLog(Hashtable log, Object key) throws IOException {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment