diff options
Diffstat (limited to 'src/mongo/db/s/balancer/balancer_commands_scheduler_impl.h')
-rw-r--r-- | src/mongo/db/s/balancer/balancer_commands_scheduler_impl.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/mongo/db/s/balancer/balancer_commands_scheduler_impl.h b/src/mongo/db/s/balancer/balancer_commands_scheduler_impl.h index 5803a880029..92f9f074441 100644 --- a/src/mongo/db/s/balancer/balancer_commands_scheduler_impl.h +++ b/src/mongo/db/s/balancer/balancer_commands_scheduler_impl.h @@ -336,14 +336,12 @@ public: const BSONObj& lowerBoundKey, const BSONObj& upperBoundKey, bool estimatedValue, - int64_t maxSize, const ChunkVersion& version) : CommandInfo(shardId, nss, boost::none), _shardKeyPattern(shardKeyPattern), _lowerBoundKey(lowerBoundKey), _upperBoundKey(upperBoundKey), _estimatedValue(estimatedValue), - _maxSize(maxSize), _version(version) {} BSONObj serialise() const override { @@ -352,8 +350,7 @@ public: .append(kKeyPattern, _shardKeyPattern) .append(kMinValue, _lowerBoundKey) .append(kMaxValue, _upperBoundKey) - .append(kEstimatedValue, _estimatedValue) - .append(kMaxSizeValue, _maxSize); + .append(kEstimatedValue, _estimatedValue); _version.serializeToBSON(ChunkVersion::kShardVersionField, &commandBuilder); @@ -365,7 +362,6 @@ private: BSONObj _lowerBoundKey; BSONObj _upperBoundKey; bool _estimatedValue; - int64_t _maxSize; ChunkVersion _version; static const std::string kCommandName; @@ -373,7 +369,6 @@ private: static const std::string kMinValue; static const std::string kMaxValue; static const std::string kEstimatedValue; - static const std::string kMaxSizeValue; }; class SplitChunkCommandInfo : public CommandInfo { @@ -594,8 +589,7 @@ public: const ChunkRange& chunkRange, const ChunkVersion& version, const KeyPattern& keyPattern, - bool estimatedValue, - int64_t maxSize) override; + bool estimatedValue) override; private: enum class SchedulerState { Recovering, Running, Stopping, Stopped }; |