PragmaTwice commented on code in PR #3294:
URL: https://github.com/apache/kvrocks/pull/3294#discussion_r2619662992
##########
src/config/config.cc:
##########
@@ -890,6 +891,12 @@ Status Config::finish() {
if ((cluster_enabled) && !load_tokens.empty()) {
return {Status::NotOK, "enabled cluster mode wasn't allowed while the
namespace exists"};
}
+ if ((redis_databases > 0) && !load_tokens.empty()) {
+ return {Status::NotOK, "redis-databases > 0 wasn't allowed while the
namespace exists"};
+ }
+ if ((redis_databases > 0) && (cluster_enabled)) {
+ return {Status::NotOK, "enabled cluster mode and redis-databases > 0
wasn't allowed at the same time"};
Review Comment:
```suggestion
return {Status::NotOK, "cluster mode and redis-databases cannot be
enabled at the same time"};
```
--
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]