summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/collection_metadata_test.cpp
diff options
context:
space:
mode:
authorNathan Myers <nathan.myers@10gen.com>2017-10-17 14:07:38 -0400
committerNathan Myers <nathan.myers@10gen.com>2017-10-17 14:07:38 -0400
commitaeabbf96ff3c2990f553ba0a5e6e1d18ebddab2f (patch)
treecfb67393fadfd03d0c40d5082711da5dfa44edc4 /src/mongo/db/s/collection_metadata_test.cpp
parentbd0c03a8816985f74f7bd24245aa81f9cb5b37f7 (diff)
downloadmongo-aeabbf96ff3c2990f553ba0a5e6e1d18ebddab2f.tar.gz
SERVER-31191 Plumb Collection UUIDs through catalog cache
Diffstat (limited to 'src/mongo/db/s/collection_metadata_test.cpp')
-rw-r--r--src/mongo/db/s/collection_metadata_test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/s/collection_metadata_test.cpp b/src/mongo/db/s/collection_metadata_test.cpp
index cf5bea78a00..13b4d540de2 100644
--- a/src/mongo/db/s/collection_metadata_test.cpp
+++ b/src/mongo/db/s/collection_metadata_test.cpp
@@ -70,7 +70,8 @@ std::unique_ptr<CollectionMetadata> makeCollectionMetadataImpl(
kNss, ChunkRange{nextMinKey, shardKeyPattern.globalMax()}, version, kOtherShard);
}
- auto cm = ChunkManager::makeNew(kNss, shardKeyPattern, nullptr, false, epoch, allChunks);
+ UUID uuid(UUID::gen());
+ auto cm = ChunkManager::makeNew(kNss, uuid, shardKeyPattern, nullptr, false, epoch, allChunks);
return stdx::make_unique<CollectionMetadata>(cm, kThisShard);
}