Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,9 @@ public void asyncAddEntry(ByteBuf buffer, int numberOfMessages, AddEntryCallback
}

private synchronized void internalAsyncAddEntry(OpAddEntry addOperation) {
if (!beforeAddEntry(addOperation)) {
return;
}
pendingAddEntries.add(addOperation);
final State state = STATE_UPDATER.get(this);
if (state == State.Fenced) {
Expand Down Expand Up @@ -779,10 +782,7 @@ private synchronized void internalAsyncAddEntry(OpAddEntry addOperation) {
addOperation.setCloseWhenDone(true);
STATE_UPDATER.set(this, State.ClosingLedger);
}
// interceptor entry before add to bookie
if (beforeAddEntry(addOperation)) {
addOperation.initiate();
}
addOperation.initiate();
}
}

Expand Down Expand Up @@ -1513,9 +1513,7 @@ public synchronized void updateLedgersIdsComplete(Stat stat) {
ReferenceCountUtil.release(existsOp.data);
}
existsOp.setLedger(currentLedger);
if (beforeAddEntry(existsOp)) {
pendingAddEntries.add(existsOp);
}
pendingAddEntries.add(existsOp);
}
} while (existsOp != null && --pendingSize > 0);

Expand Down