MCPcopy Create free account
hub / github.com/baidu/tera / UpdateMetaDone

Method UpdateMetaDone

src/master/update_table_procedure.cc:128–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128void 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
147void UpdateTableProcedure::SyncTabletsSchemaHandler(const UpdateTablePhase&) {
148 if (sync_tablets_schema_) {

Callers

nothing calls this directly

Calls 4

IsUpdateCfFunction · 0.85
AbortUpdateMethod · 0.80
CommitUpdateMethod · 0.80
GetStatusMethod · 0.45

Tested by

no test coverage detected