caipengbo commented on code in PR #2047:
URL: https://github.com/apache/kvrocks/pull/2047#discussion_r1467193749
##########
src/storage/storage.h:
##########
@@ -171,6 +171,8 @@ class Storage {
void PurgeOldBackups(uint32_t num_backups_to_keep, uint32_t
backup_max_keep_hours);
uint64_t GetTotalSize(const std::string &ns = kDefaultNamespace);
void CheckDBSizeLimit();
+ bool ReachedDBSizeLimit() { return db_size_limit_reached_; }
+ void SetDBSizeLimit(bool limit) { db_size_limit_reached_ = limit; }
Review Comment:
This flag will be modified by flush or compact, but for now it's only for
testing (debug), so I think it's good enough.
--
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]