diff options
author | Charlie <charlie.swanson@mongodb.org> | 2015-04-06 17:51:34 -0400 |
---|---|---|
committer | Charlie Swanson <charlie.swanson@mongodb.com> | 2016-10-13 12:01:17 -0400 |
commit | aa963aead7c18ea0bb6117d9c8153d0ba1036f1d (patch) | |
tree | 758226f86ed5286f62f3684d9b58d5f520ff1c29 | |
parent | f165265fec24411b6196f7fc8cee60391e4e85fe (diff) | |
download | mongo-aa963aead7c18ea0bb6117d9c8153d0ba1036f1d.tar.gz |
SERVER-17899 Assert on the appropriate stats when renaming a collection in core/rename7.js
(cherry picked from commit fb9b70f1a6a9797f2637291a1c01412f0eb5b19a)
-rw-r--r-- | jstests/core/rename7.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/core/rename7.js b/jstests/core/rename7.js index 792c77df52d..7a740622a54 100644 --- a/jstests/core/rename7.js +++ b/jstests/core/rename7.js @@ -49,7 +49,7 @@ a.save( {a: 1} ); a.save( {a: 2} ); a.save( {a: 3} ); -previousStorageSize = a.stats().storageSize +previousMaxSize = a.stats().maxSize assert.commandWorked( admin.runCommand( {renameCollection: "db_a.rename7_capped", to: "db_b.rename7_capped"} ) ); @@ -61,7 +61,7 @@ assert.eq( 3, b.find().count() ); assert( db_b.getCollectionNames().indexOf( "rename7_capped" ) >= 0 ); printjson( db_b.rename7_capped.stats() ); assert( db_b.rename7_capped.stats().capped ); -assert.eq( previousStorageSize, b.stats().storageSize ); +assert.eq( previousMaxSize, b.stats().maxSize ); a.drop(); b.drop(); |