diff options
author | Paolo Polato <paolo.polato@mongodb.com> | 2022-02-16 20:52:57 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-02-16 22:20:46 +0000 |
commit | eee82fa3dc2b0e370a21f9855b74b30937dd859c (patch) | |
tree | 699620c9e9321147b237e2c4729c5a0c7f8536db /src/mongo/db/s/balancer/balancer.h | |
parent | 9d43212e982f62c24b8f35ca3cf234d5453d05ab (diff) | |
download | mongo-eee82fa3dc2b0e370a21f9855b74b30937dd859c.tar.gz |
SERVER-62853 Report maxChunkSize in balancerCollectionStatus()
Diffstat (limited to 'src/mongo/db/s/balancer/balancer.h')
-rw-r--r-- | src/mongo/db/s/balancer/balancer.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mongo/db/s/balancer/balancer.h b/src/mongo/db/s/balancer/balancer.h index c3ea9b0578f..f0710e245b6 100644 --- a/src/mongo/db/s/balancer/balancer.h +++ b/src/mongo/db/s/balancer/balancer.h @@ -33,6 +33,7 @@ #include "mongo/db/s/balancer/balancer_chunk_selection_policy.h" #include "mongo/db/s/balancer/balancer_random.h" #include "mongo/platform/mutex.h" +#include "mongo/s/request_types/balancer_collection_status_gen.h" #include "mongo/stdx/condition_variable.h" #include "mongo/stdx/thread.h" @@ -183,16 +184,12 @@ public: */ void abortCollectionDefragmentation(OperationContext* opCtx, const NamespaceString& nss); - struct BalancerStatus { - bool balancerCompliant; - boost::optional<std::string> firstComplianceViolation; - boost::optional<BSONObj> details; - }; /** * Returns if a given collection is draining due to a removed shard, has chunks on an invalid * zone or the number of chunks is imbalanced across the cluster */ - BalancerStatus getBalancerStatusForNs(OperationContext* opCtx, const NamespaceString& nss); + BalancerCollectionStatusResponse getBalancerStatusForNs(OperationContext* opCtx, + const NamespaceString& nss); private: /** |