[fix](rebalance) fix that the clone operation is not performed due to incorrect condition judgment (#17381)

This commit is contained in:
Xin Liao
2023-03-05 21:58:33 +08:00
committed by GitHub
parent d8a231f340
commit 5190a496ac

View File

@ -68,7 +68,7 @@ EngineCloneTask::EngineCloneTask(const TCloneReq& clone_req, const TMasterInfo&
Status EngineCloneTask::execute() {
// register the tablet to avoid it is deleted by gc thread during clone process
SCOPED_ATTACH_TASK(_mem_tracker);
if (StorageEngine::instance()->tablet_manager()->register_clone_tablet(_clone_req.tablet_id)) {
if (!StorageEngine::instance()->tablet_manager()->register_clone_tablet(_clone_req.tablet_id)) {
return Status::InternalError("tablet {} is under clone", _clone_req.tablet_id);
}
Status st = _do_clone();