Fix a thread safety issue ThreadLocalCopies triggered when running StringsMapMain.

This commit is contained in:
Peter Lawrey
2014-11-12 21:04:42 +00:00
parent d296d3d3b6
commit f5f2139428
4 changed files with 11 additions and 6 deletions
@@ -820,7 +820,7 @@ final class ReplicatedChronicleMap<K, KI, MKI extends MetaBytesInterop<K, KI>,
/**
* called from a remote node when it wishes to propagate a remove event
*/
private void remotePut(@NotNull final Bytes inBytes, long hash2,
void remotePut(@NotNull final Bytes inBytes, long hash2,
final byte identifier, final long timestamp,
long valuePos, long valueLimit) {
@@ -1096,7 +1096,7 @@ final class TcpReplicator extends AbstractChannelReplicator implements Closeable
* @param attached
* @throws InterruptedException
*/
private void entriesFromBuffer(Attached attached) throws InterruptedException, IOException {
void entriesFromBuffer(Attached attached) throws InterruptedException, IOException {
for (; ; ) {
out.limit(in.position());