caipengbo commented on code in PR #2047:
URL: https://github.com/apache/kvrocks/pull/2047#discussion_r1467231515


##########
src/storage/storage.h:
##########
@@ -243,7 +245,7 @@ class Storage {
   Config *config_ = nullptr;
   std::vector<rocksdb::ColumnFamilyHandle *> cf_handles_;
   LockManager lock_mgr_;
-  bool db_size_limit_reached_ = false;
+  std::atomic<bool> db_size_limit_reached_{false};

Review Comment:
   This variable will be modified by multiple threads during compact and flush.



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