@Override public void operationComplete(final int rc, PerChannelBookieClient pcbc) { if (rc != BKException.Code.OK) { bookieClient.completeAdd(rc, ledgerId, entryId, addr, cb, ctx); } else { pcbc.addEntry(ledgerId, masterKey, entryId, toSend, cb, ctx, options, allowFastFail, writeFlags); } toSend.release(); recycle(); }