Skip to content

Commit

Permalink
reuse sumEstimatedSize
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnvg committed Oct 24, 2018
1 parent 9925984 commit 980f1a5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,7 @@ private synchronized void coordinateWrites() {
break;
}
}
long opsSize = ops.stream().mapToLong(Translog.Operation::estimateSize).sum();
bufferSizeInBytes -= opsSize;
bufferSizeInBytes -= sumEstimatedSize;
numConcurrentWrites++;
LOGGER.trace("{}[{}] write [{}/{}] [{}]", params.getFollowShardId(), numConcurrentWrites, ops.get(0).seqNo(),
ops.get(ops.size() - 1).seqNo(), ops.size());
Expand Down

0 comments on commit 980f1a5

Please sign in to comment.