bb.putLong(entryId);
bb.flip();
if (LOG.isTraceEnabled()) {
LOG.trace("Add entry rc = " + rc + " for " + entryId + "@" + ledgerId);
}
src.sendResponse(new ByteBuffer[] { bb });
if (isStatsEnabled) {
// compute the latency
if (0 == rc) {
// for add operations, we compute latency in writeComplete callbacks.
long elapsedTime = System.currentTimeMillis() - startTime;