Skip to content

Commit

Permalink
fix clear copyset creating flag when create copyset success
Browse files Browse the repository at this point in the history
  • Loading branch information
cw123 committed May 11, 2022
1 parent dd0e207 commit bfac19d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion curvefs/src/mds/topology/topology_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ TopoStatusCode TopologyManager::CreateCopyset(
return TopoStatusCode::TOPO_CREATE_COPYSET_ON_METASERVER_FAIL;
}

// add copyset record to topogy
// add copyset record to topology
CopySetInfo copysetInfo(copyset.poolId, copyset.copysetId);
copysetInfo.SetCopySetMembers(copyset.metaServerIds);
auto ret = topology_->AddCopySet(copysetInfo);
Expand All @@ -866,6 +866,7 @@ TopoStatusCode TopologyManager::CreateCopyset(
return ret;
}

ClearCopysetCreating(copyset.poolId, copyset.copysetId);
return TopoStatusCode::TOPO_OK;
}

Expand Down

0 comments on commit bfac19d

Please sign in to comment.