iamaleksey commented on code in PR #2256:
URL: https://github.com/apache/cassandra/pull/2256#discussion_r1176352965


##########
src/java/org/apache/cassandra/journal/Flusher.java:
##########
@@ -259,7 +259,7 @@ private void asyncFlushBatch(ActiveSegment<K>.Allocation 
alloc, Executor executo
             alloc.awaitFlush(journal.metrics.waitingOnFlush);
             pending.decrementAndGet();
             written.incrementAndGet();
-            executor.execute(onDurable);
+            executor.execute(callback);

Review Comment:
   Had it that way initially, but implemented `Runnable` afterwards to avoid 
allocating a capturing lambda in the common case.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to