kangpinghuang commented on a change in pull request #1200: Merge refactor code 
into master
URL: https://github.com/apache/incubator-doris/pull/1200#discussion_r288457847
 
 

 ##########
 File path: be/src/agent/task_worker_pool.cpp
 ##########
 @@ -2254,25 +1638,22 @@ AgentStatus TaskWorkerPool::_move_dir(
      bool overwrite,
      std::vector<std::string>* error_msgs) {
 
-    OLAPTablePtr tablet = _env->olap_engine()->get_table(
+    TabletSharedPtr tablet = 
StorageEngine::instance()->tablet_manager()->get_tablet(
                 tablet_id, schema_hash);
-    if (tablet.get() == NULL) {
+    if (tablet == nullptr) {
         LOG(INFO) << "failed to get tablet. tablet_id:" << tablet_id
 
 Review comment:
   ```suggestion
           LOG(WARNING) << "failed to get tablet. tablet_id:" << tablet_id
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to