summaryrefslogtreecommitdiff
path: root/src/mongo/s/chunk.h
diff options
context:
space:
mode:
authorJack Mulrow <jack.mulrow@mongodb.com>2020-06-11 16:20:16 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-07-29 13:45:28 +0000
commit578ebc515122de8ed50b2b914d9d92ee61139b3f (patch)
tree70423886d40cf37be010be424e9c97a95cd35a8f /src/mongo/s/chunk.h
parent1c557517628311229f22388499eaf1c809169c32 (diff)
downloadmongo-578ebc515122de8ed50b2b914d9d92ee61139b3f.tar.gz
SERVER-48601 ChunkSplitter should use the same chunk bounds for splitVector and splitChunk
Diffstat (limited to 'src/mongo/s/chunk.h')
-rw-r--r--src/mongo/s/chunk.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/s/chunk.h b/src/mongo/s/chunk.h
index e238809d248..77222f92408 100644
--- a/src/mongo/s/chunk.h
+++ b/src/mongo/s/chunk.h
@@ -143,6 +143,10 @@ public:
return _chunkInfo.getShardIdAt(_atClusterTime);
}
+ const auto& getRange() const {
+ return _chunkInfo.getRange();
+ }
+
/**
* Throws MigrationConflict if the history entry valid for the chunk's pinned cluster time, if
* it has one, is not the most recent entry (meaning the chunk has moved).