void sendWriteRequest(List<BookieSocketAddress> ensemble, int bookieIndex) { int flags = isRecoveryAdd ? FLAG_RECOVERY_ADD | FLAG_HIGH_PRIORITY : FLAG_NONE; clientCtx.getBookieClient().addEntry(ensemble.get(bookieIndex), lh.ledgerId, lh.ledgerKey, entryId, toSend, this, bookieIndex, flags, allowFailFast, lh.writeFlags); ++pendingWriteRequests; }
Unpooled.wrappedBuffer(data, 0, data.length)); for (BookieSocketAddress newBookie : newBookies) { bkc.getBookieClient().addEntry(newBookie, lh.getId(), lh.getLedgerKey(), entryId, ByteBufList.clone(toSend), multiWriteCallback, dataLength, BookieProtocol.FLAG_RECOVERY_ADD,