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:
parent
a5ad98beed
commit
dbf9ea8565
|
@ -51,6 +51,7 @@ Release 0.91.0 - Unreleased
|
||||||
unflushable regions.
|
unflushable regions.
|
||||||
HBASE-3550 FilterList reports false positives (Bill Graham via Andrew
|
HBASE-3550 FilterList reports false positives (Bill Graham via Andrew
|
||||||
Purtell)
|
Purtell)
|
||||||
|
HBASE-3566 writeToWAL is not serialized for increment operation
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
HBASE-3290 Max Compaction Size (Nicolas Spiegelberg via Stack)
|
HBASE-3290 Max Compaction Size (Nicolas Spiegelberg via Stack)
|
||||||
|
|
|
@ -44,7 +44,7 @@ import org.apache.hadoop.io.Writable;
|
||||||
* {@link #addColumn(byte[], byte[], long)} method.
|
* {@link #addColumn(byte[], byte[], long)} method.
|
||||||
*/
|
*/
|
||||||
public class Increment implements Writable {
|
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 byte [] row = null;
|
||||||
private long lockId = -1L;
|
private long lockId = -1L;
|
||||||
|
@ -296,6 +296,9 @@ public class Increment implements Writable {
|
||||||
}
|
}
|
||||||
this.familyMap.put(family, set);
|
this.familyMap.put(family, set);
|
||||||
}
|
}
|
||||||
|
if (version > 1) {
|
||||||
|
this.writeToWAL = in.readBoolean();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void write(final DataOutput out)
|
public void write(final DataOutput out)
|
||||||
|
@ -323,5 +326,6 @@ public class Increment implements Writable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
out.writeBoolean(writeToWAL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue