summaryrefslogtreecommitdiff
path: root/src/mongo/s/chunk.cpp
diff options
context:
space:
mode:
authorMatthew Saltz <matthew.saltz@mongodb.com>2018-06-21 18:12:57 -0400
committerMatthew Saltz <matthew.saltz@mongodb.com>2018-06-25 15:53:28 -0400
commit5339c9a55181662545652ab7106c8f4e55109327 (patch)
tree2e8bc2898fc1ef0095b3dc0b82033fae3dfd3e6a /src/mongo/s/chunk.cpp
parentb7ff5816f4d9d468b1875013384e7e51184628a0 (diff)
downloadmongo-5339c9a55181662545652ab7106c8f4e55109327.tar.gz
SERVER-35734 Integrate new ChunkWritesTracker and ChunkSplitStateDriver with ChunkSplitter and ShardServerOpObserver
Diffstat (limited to 'src/mongo/s/chunk.cpp')
-rw-r--r--src/mongo/s/chunk.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/mongo/s/chunk.cpp b/src/mongo/s/chunk.cpp
index 2bc6c8748ac..d586ab8c879 100644
--- a/src/mongo/s/chunk.cpp
+++ b/src/mongo/s/chunk.cpp
@@ -98,23 +98,6 @@ bool ChunkInfo::containsKey(const BSONObj& shardKey) const {
return getMin().woCompare(shardKey) <= 0 && shardKey.woCompare(getMax()) < 0;
}
-uint64_t ChunkInfo::getBytesWritten() const {
- return _writesTracker->getBytesWritten();
-}
-
-void ChunkInfo::addBytesWritten(uint64_t bytesWrittenIncrement) {
- _writesTracker->addBytesWritten(bytesWrittenIncrement);
-}
-
-void ChunkInfo::clearBytesWritten() {
- _writesTracker->clearBytesWritten();
-}
-
-bool ChunkInfo::shouldSplit(uint64_t maxChunkSize) const {
- // Check if there are enough estimated bytes written to warrant a split
- return _writesTracker->shouldSplit(maxChunkSize);
-}
-
std::string ChunkInfo::toString() const {
return str::stream() << ChunkType::shard() << ": " << _shardId << ", " << ChunkType::lastmod()
<< ": " << _lastmod.toString() << ", " << _range.toString();