HCOLL-243 fixed replication issue -- we should PUT remote removed key into the map even it was absent

This commit is contained in:
leventov
2014-12-16 00:09:43 +07:00
parent 4a54633577
commit ae47c7b8fa
3 changed files with 85 additions and 66 deletions
@@ -2035,13 +2035,13 @@ class VanillaChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? super KI>,
// do nothing
}
private void clearMetaData(long offset) {
final void clearMetaData(long offset) {
if (metaDataBytes > 0)
bytes.zeroOut(offset, offset + metaDataBytes);
}
//TODO refactor/optimize
private long alloc(int blocks) {
final long alloc(int blocks) {
if (blocks > maxEntryOversizeFactor)
throw new IllegalArgumentException("Entry is too large: requires " + blocks +
" entry size chucks, " + maxEntryOversizeFactor + " is maximum.");