summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-04-13 15:47:20 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-04-21 14:31:46 -0400
commit4777fb87f36dc4c1f808570490eab01a1c12095f (patch)
tree34e6d877daf775d3d1a4d6006b82a2b6eabe61e2 /jstests/noPassthroughWithMongod
parent1e0624eb98e4c5609ddf86c8f14bdea68bce9f3b (diff)
downloadmongo-4777fb87f36dc4c1f808570490eab01a1c12095f.tar.gz
SERVER-18024 Move collection metadata loading under the catalog manager
Cleans up the CollectionType parsing code and moves all the collection metadata retrieval logic under the catalog manager. Also moves type_collection.* under the catalog manager library.
Diffstat (limited to 'jstests/noPassthroughWithMongod')
-rw-r--r--jstests/noPassthroughWithMongod/no_balance_collection.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/jstests/noPassthroughWithMongod/no_balance_collection.js b/jstests/noPassthroughWithMongod/no_balance_collection.js
index 8cc580a29e0..bdb4a9b4b66 100644
--- a/jstests/noPassthroughWithMongod/no_balance_collection.js
+++ b/jstests/noPassthroughWithMongod/no_balance_collection.js
@@ -82,7 +82,11 @@ assert.writeOK(bulk.execute());
printjson( lastMigration )
printjson( sh._lastMigration( collB ) )
-if( lastMigration == null ) assert.eq( null, sh._lastMigration( collB ) )
-else assert.eq( lastMigration.time, sh._lastMigration( collB ).time )
+if(lastMigration == null) {
+ assert.eq(null, sh._lastMigration(collB));
+}
+else {
+ assert.eq(lastMigration.time, sh._lastMigration(collB).time);
+}
-st.stop()
+st.stop();