diff options
Diffstat (limited to 'jstests/sharding/drop_collection.js')
-rw-r--r-- | jstests/sharding/drop_collection.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/jstests/sharding/drop_collection.js b/jstests/sharding/drop_collection.js index 6f02bf72cec..506fbaaedbe 100644 --- a/jstests/sharding/drop_collection.js +++ b/jstests/sharding/drop_collection.js @@ -349,9 +349,7 @@ jsTest.log("Test that dropping a sharded collection, the cached metadata on shar // Get the chunks cache collection name const configCollDoc = st.s0.getDB('config').collections.findOne({_id: coll.getFullName()}); - const chunksCollName = 'cache.chunks.' + - (configCollDoc.hasOwnProperty('timestamp') ? extractUUIDFromObject(configCollDoc.uuid) - : coll.getFullName()); + const chunksCollName = 'cache.chunks.' + coll.getFullName(); // Drop the collection assert.commandWorked(db.runCommand({drop: coll.getName()})); |