diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-01-11 10:59:01 -0500 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-01-11 13:58:55 -0500 |
commit | 8d54bdfba49d0163be875def30e107348177c241 (patch) | |
tree | ab990338580e8efb1bb1d8a69700ed3baa23c42b /src/mongo/db/dbhelpers.h | |
parent | 715a6603f39869afa01079e38990eaa6f227691f (diff) | |
download | mongo-8d54bdfba49d0163be875def30e107348177c241.tar.gz |
SERVER-22113 Remove unused sharding-specific getLocsInRange code
Diffstat (limited to 'src/mongo/db/dbhelpers.h')
-rw-r--r-- | src/mongo/db/dbhelpers.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/mongo/db/dbhelpers.h b/src/mongo/db/dbhelpers.h index 5be0ba37185..53d0839711b 100644 --- a/src/mongo/db/dbhelpers.h +++ b/src/mongo/db/dbhelpers.h @@ -177,33 +177,6 @@ struct Helpers { bool fromMigrate = false, bool onlyRemoveOrphanedDocs = false); - - // TODO: This will supersede Chunk::MaxObjectsPerChunk - static const long long kMaxDocsPerChunk; - - /** - * Get sorted disklocs that belong to a range of a namespace defined over an index - * key pattern (KeyRange). - * - * @param chunk range of a namespace over an index key pattern. - * @param maxChunkSizeBytes max number of bytes that we will retrieve locs for, if the - * range is estimated larger (from avg doc stats) we will stop recording locs. - * @param locs set to record locs in - * @param estChunkSizeBytes chunk size estimated from doc count and avg doc size - * @param chunkTooBig whether the chunk was estimated larger than our maxChunkSizeBytes - * @param errmsg filled with textual description of error if this call return false - * - * @return NamespaceNotFound if the namespace doesn't exist - * @return IndexNotFound if the index pattern doesn't match any indexes - * @return InvalidLength if the estimated size exceeds maxChunkSizeBytes - */ - static Status getLocsInRange(OperationContext* txn, - const KeyRange& range, - long long maxChunkSizeBytes, - std::set<RecordId>* locs, - long long* numDocs, - long long* estChunkSizeBytes); - /** * Remove all documents from a collection. * You do not need to set the database before calling. |