| 126 | } |
| 127 | |
| 128 | void UpdateTableProcedure::UpdateMetaDone(bool succ) { |
| 129 | if (!succ) { |
| 130 | PROC_LOG(WARNING) << "fail to update meta"; |
| 131 | table_->AbortUpdate(); |
| 132 | EnterPhaseWithResponseStatus(kMetaTabletError, UpdateTablePhase::kEofPhase); |
| 133 | return; |
| 134 | } |
| 135 | PROC_LOG(INFO) << "update table info to meta succ"; |
| 136 | if (FLAGS_tera_online_schema_update_enabled && table_->GetStatus() == kTableEnable && |
| 137 | IsUpdateCf(table_)) { |
| 138 | SetNextPhase(UpdateTablePhase::kTabletsSchemaSyncing); |
| 139 | return; |
| 140 | } else { |
| 141 | table_->CommitUpdate(); |
| 142 | EnterPhaseWithResponseStatus(kMasterOk, UpdateTablePhase::kEofPhase); |
| 143 | return; |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | void UpdateTableProcedure::SyncTabletsSchemaHandler(const UpdateTablePhase&) { |
| 148 | if (sync_tablets_schema_) { |
nothing calls this directly
no test coverage detected