PragmaTwice commented on code in PR #3098:
URL: https://github.com/apache/kvrocks/pull/3098#discussion_r2253010821


##########
src/cluster/replication.cc:
##########
@@ -671,6 +671,8 @@ ReplicationThread::CBState 
ReplicationThread::incrementBatchLoopCB(bufferevent *
           if (data_written) {
             sendReplConfAck(bev, force_ack);
           }
+          // set a watermark so the callback won't be called again until the 
data is enough
+          bufferevent_setwatermark(bev, EV_READ, incr_bulk_len_ + 2, 0);

Review Comment:
   Should the highmark be larger than the lowmark?



-- 
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]

Reply via email to