Skip to content

Commit

Permalink
[fix]get copysset in clusetr
Browse files Browse the repository at this point in the history
The judgment condition is wrong. If it is the old way, as long as
filterScanning is set, the filter will be started regardless of the
value, which is inconsistent with expectations.

Signed-off-by: Cyber-SiKu <Cyber-SiKu@outlook.com>
  • Loading branch information
Cyber-SiKu committed Jun 13, 2023
1 parent f76ed2d commit 6fa82a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mds/topology/topology_service_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1680,7 +1680,7 @@ void TopologyServiceManager::GetCopySetsInCluster(
const GetCopySetsInClusterRequest* request,
GetCopySetsInClusterResponse* response) {
auto filter = [&](const CopySetInfo& copysetInfo) {
if (request->has_filterscaning() && !copysetInfo.GetScaning()) {
if (request->filterscaning() && !copysetInfo.GetScaning()) {
return false;
}

Expand Down

0 comments on commit 6fa82a1

Please sign in to comment.