diff --git a/src/storage/ls/ob_ls.cpp b/src/storage/ls/ob_ls.cpp index 145f3d5701..bfb7da6654 100644 --- a/src/storage/ls/ob_ls.cpp +++ b/src/storage/ls/ob_ls.cpp @@ -1168,6 +1168,8 @@ int ObLS::online_without_lock() if (IS_NOT_INIT) { ret = OB_NOT_INIT; LOG_WARN("ls is not inited", K(ret)); + } else if (running_state_.is_running()) { + LOG_INFO("ls is running state, do nothing", K(ret)); } else if (OB_FAIL(ls_tablet_svr_.online())) { LOG_WARN("tablet service online failed", K(ret), K(ls_meta_)); } else if (OB_FAIL(lock_table_.online())) { diff --git a/src/storage/ls/ob_ls.h b/src/storage/ls/ob_ls.h index a1b264c453..c2a072cbcb 100644 --- a/src/storage/ls/ob_ls.h +++ b/src/storage/ls/ob_ls.h @@ -385,7 +385,7 @@ public: int check_can_replay_clog(bool &can_replay); int check_can_online(bool &can_online); - TO_STRING_KV(K_(ls_meta), K_(switch_epoch), K_(log_handler), K_(restore_handler), K_(is_inited), K_(tablet_gc_handler), K_(startup_transfer_info)); + TO_STRING_KV(K_(running_state), K_(ls_meta), K_(switch_epoch), K_(log_handler), K_(restore_handler), K_(is_inited), K_(tablet_gc_handler), K_(startup_transfer_info)); private: void update_state_seq_(); int ls_init_for_dup_table_();