[refactor](schema_hash) remove schema_hash since every tablet id in be is unique (#8574)

This commit is contained in:
caiconghui
2022-04-07 08:37:45 +08:00
committed by GitHub
parent 57638ae43d
commit 98cab78320
30 changed files with 102 additions and 158 deletions

View File

@ -775,8 +775,7 @@ Status OlapScanNode::start_scan_thread(RuntimeState* state) {
auto tablet_id = scan_range->tablet_id;
int32_t schema_hash = strtoul(scan_range->schema_hash.c_str(), nullptr, 10);
std::string err;
TabletSharedPtr tablet = StorageEngine::instance()->tablet_manager()->get_tablet(
tablet_id, schema_hash, true, &err);
TabletSharedPtr tablet = StorageEngine::instance()->tablet_manager()->get_tablet(tablet_id, true, &err);
if (tablet == nullptr) {
std::stringstream ss;
ss << "failed to get tablet: " << tablet_id << " with schema hash: " << schema_hash