Fixed usages of Bytes.write(Bytes) to conform old semantics

This commit is contained in:
leventov
2015-02-01 19:49:58 +07:00
parent e38f6df14c
commit 938b9dca7b
9 changed files with 7 additions and 14 deletions
@@ -514,7 +514,7 @@ final class ReplicatedChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? supe
// write the key
entry.position(keyPosition);
entry.limit(keyLimit);
destination.write(entry);
destination.write(entry, entry.position(), entry.remaining());
boolean debugEnabled = LOG.isDebugEnabled();
String message = null;
@@ -539,7 +539,7 @@ final class ReplicatedChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? supe
// writes the value
entry.limit(entry.position() + valueSize);
destination.write(entry);
destination.write(entry, entry.position(), entry.remaining());
if (debugEnabled) {
LOG.debug(message + "value=" + entry.toString().trim() + ")");