Skip to content

Commit

Permalink
rm db path check when load
Browse files Browse the repository at this point in the history
  • Loading branch information
vagetablechicken committed Nov 10, 2023
1 parent 4b3743e commit 4ca8cfa
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/tablet/tablet_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3033,10 +3033,7 @@ void TabletImpl::LoadTable(RpcController* controller, const ::openmldb::api::Loa

std::string db_path = GetDBPath(root_path, tid, pid);
if (!::openmldb::base::IsExists(db_path)) {
PDLOG(WARNING, "table db path does not exist. tid %u, pid %u, path %s", tid, pid, db_path.c_str());
response->set_code(::openmldb::base::ReturnCode::kTableDbPathIsNotExist);
response->set_msg("table db path does not exist");
break;
PDLOG(WARNING, "table db path does not exist, but still load. tid %u, pid %u, path %s", tid, pid, db_path.c_str());
}

std::shared_ptr<Table> table = GetTable(tid, pid);
Expand Down

0 comments on commit 4ca8cfa

Please sign in to comment.