HBASE-3566 writeToWAL is not serialized for increment operation

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1074905 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Kyle Purtell 2011-02-26 19:10:30 +00:00
parent a5ad98beed
commit dbf9ea8565
2 changed files with 6 additions and 1 deletions

View File

@ -51,6 +51,7 @@ Release 0.91.0 - Unreleased
unflushable regions.
HBASE-3550 FilterList reports false positives (Bill Graham via Andrew
Purtell)
HBASE-3566 writeToWAL is not serialized for increment operation
IMPROVEMENTS
HBASE-3290 Max Compaction Size (Nicolas Spiegelberg via Stack)

View File

@ -44,7 +44,7 @@ import org.apache.hadoop.io.Writable;
* {@link #addColumn(byte[], byte[], long)} method.
*/
public class Increment implements Writable {
private static final byte INCREMENT_VERSION = (byte)1;
private static final byte INCREMENT_VERSION = (byte)2;
private byte [] row = null;
private long lockId = -1L;
@ -296,6 +296,9 @@ public class Increment implements Writable {
}
this.familyMap.put(family, set);
}
if (version > 1) {
this.writeToWAL = in.readBoolean();
}
}
public void write(final DataOutput out)
@ -323,5 +326,6 @@ public class Increment implements Writable {
}
}
}
out.writeBoolean(writeToWAL);
}
}