diff options
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: /** |