mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-167 removed trace code
This commit is contained in:
@@ -518,16 +518,6 @@ class StatelessChronicleMap<K, V> implements ChronicleMap<K, V>, Closeable {
|
||||
|
||||
assert size < Integer.MAX_VALUE;
|
||||
|
||||
|
||||
LOG.info("resizing to=" + size);
|
||||
|
||||
LOG.info("bytes before position=" + bytes.position() +
|
||||
", " +
|
||||
"limit=" + bytes.limit() + ",capacity=" + bytes.capacity());
|
||||
|
||||
LOG.info("buffer before");
|
||||
|
||||
LOG.info("resize buffer to " + size + " bytes");
|
||||
final ByteBuffer result = ByteBuffer.allocateDirect((int) size).order(ByteOrder.nativeOrder());
|
||||
|
||||
int bufferPosition = buffer.position();
|
||||
@@ -538,9 +528,7 @@ class StatelessChronicleMap<K, V> implements ChronicleMap<K, V>, Closeable {
|
||||
|
||||
buffer.position(0);
|
||||
buffer.limit((int) bytesPosition);
|
||||
LOG.info("bytesPosition to=" + bytesPosition + ", buffer.position=" + buffer.position() +
|
||||
", " +
|
||||
"limit=" + buffer.limit() + ",capacity=" + buffer.capacity());
|
||||
|
||||
for (int i = 0; i < bytesPosition; i++) {
|
||||
result.put(buffer.get());
|
||||
}
|
||||
|
||||
@@ -1046,17 +1046,6 @@ class TcpReplicator extends AbstractChannelReplicator implements Closeable {
|
||||
|
||||
assert size < Integer.MAX_VALUE;
|
||||
|
||||
|
||||
LOG.info("in before position=" + in.position() +
|
||||
", " +
|
||||
"limit=" + in.limit() + ",capacity=" + in.capacity());
|
||||
|
||||
|
||||
LOG.info("out before position=" + out.position() +
|
||||
", " +
|
||||
"limit=" + out.limit() + ",capacity=" + out.capacity());
|
||||
|
||||
|
||||
if (size < in.capacity())
|
||||
throw new IllegalStateException("it not possible to resize the buffer smaller");
|
||||
|
||||
@@ -1082,17 +1071,6 @@ class TcpReplicator extends AbstractChannelReplicator implements Closeable {
|
||||
|
||||
out.limit(outLimit);
|
||||
out.position(outPosition);
|
||||
|
||||
LOG.info("after in position=" + in.position() +
|
||||
", " +
|
||||
"limit=" + in.limit() + ",capacity=" + in.capacity());
|
||||
|
||||
|
||||
LOG.info("after out position=" + out.position() +
|
||||
", " +
|
||||
"limit=" + out.limit() + ",capacity=" + out.capacity());
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user