Start BM without config change if config is enabled.

This commit is contained in:
Suraj Gupta 2021-12-08 14:12:44 -05:00 committed by Josh Slocum
parent d3fbad74a2
commit 640cee2072
2 changed files with 6 additions and 6 deletions

View File

@ -771,7 +771,7 @@ const KeyRef JSONSchemas::statusSchema = LiteralStringRef(R"statusSchema(
"aggressive", "aggressive",
"gradual" "gradual"
]}, ]},
"blob_granules_enabled":1, "blob_granules_enabled":0
}, },
"data":{ "data":{
"least_operating_space_bytes_log_server":0, "least_operating_space_bytes_log_server":0,

View File

@ -5399,12 +5399,12 @@ ACTOR Future<Void> monitorBlobManager(ClusterControllerData* self) {
} }
} }
} }
} else { } else if (self->db.config.blobGranulesEnabled) {
wait(watchConfigChange);
// if there is no blob manager present but blob granules are now enabled, recruit a BM // if there is no blob manager present but blob granules are now enabled, recruit a BM
if (self->db.config.blobGranulesEnabled) { wait(startBlobManager(self));
wait(startBlobManager(self)); } else {
} // if there is no blob manager present and blob granules are disabled, wait for a config change
wait(watchConfigChange);
} }
} }
} }