[fix](schema_hash) Fix bug that introduced by removing schema_hash (#9449)

This commit is contained in:
caiconghui
2022-05-08 21:03:10 +08:00
committed by GitHub
parent c633402ce3
commit 580ce38a3f
8 changed files with 26 additions and 33 deletions

View File

@ -76,8 +76,8 @@ Status EngineCloneTask::_do_clone() {
string src_file_path;
TBackend src_host;
// Check local tablet exist or not
TabletSharedPtr tablet = StorageEngine::instance()->tablet_manager()->get_tablet(
_clone_req.tablet_id, _clone_req.schema_hash);
TabletSharedPtr tablet =
StorageEngine::instance()->tablet_manager()->get_tablet(_clone_req.tablet_id);
bool is_new_tablet = tablet == nullptr;
// try to repair a tablet with missing version
if (tablet != nullptr) {