caipengbo commented on code in PR #1287:
URL: 
https://github.com/apache/incubator-kvrocks/pull/1287#discussion_r1124237941


##########
src/storage/storage.h:
##########
@@ -183,7 +198,18 @@ class Storage {
 
   std::atomic<bool> db_in_retryable_io_error_{false};
 
+  std::atomic<bool> is_txn_mode_ = false;
+  // txn_write_batch_ is used as the global write batch for the transaction 
mode,
+  // all writes will be grouped in this write batch when entering the 
transaction mode,
+  // then write it at once when committing.
+  //
+  // Notice: the reason why we can use the global transaction? because the 
EXEC is an exclusive

Review Comment:
   ```suggestion
     // Notice: the reason why we can use the global transaction is that the 
EXEC is an exclusive
   ```



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