diff options
author | Spencer Jackson <spencer.jackson@mongodb.com> | 2016-10-07 17:48:08 -0400 |
---|---|---|
committer | Spencer Jackson <spencer.jackson@mongodb.com> | 2016-10-07 17:48:08 -0400 |
commit | 7ef545bd48c4a7a4a91305628ecfa7084d2956a6 (patch) | |
tree | 0fd0f5c5eec4b53f0c2ecc72e955b12ba7700ec2 /src/mongo/db/repl/database_cloner_test.cpp | |
parent | a477504c2090657a54d8ef8cd08130ef29375a8b (diff) | |
download | mongo-7ef545bd48c4a7a4a91305628ecfa7084d2956a6.tar.gz |
Revert "SERVER-26520 CollectionCloner fetches document count for progress tracking from sync source before copying documents"
This reverts commit 44957419b2dd4e6b3f7be8b817a7fcd8c71d643d.
Diffstat (limited to 'src/mongo/db/repl/database_cloner_test.cpp')
-rw-r--r-- | src/mongo/db/repl/database_cloner_test.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mongo/db/repl/database_cloner_test.cpp b/src/mongo/db/repl/database_cloner_test.cpp index e5cb2b464e2..94e93be5be4 100644 --- a/src/mongo/db/repl/database_cloner_test.cpp +++ b/src/mongo/db/repl/database_cloner_test.cpp @@ -540,7 +540,6 @@ TEST_F(DatabaseClonerTest, StartSecondCollectionClonerFailed) { << "options" << BSONObj())))); - processNetworkResponse(createCountResponse(0)); processNetworkResponse(createListIndexesResponse(0, BSON_ARRAY(idIndexSpec))); processNetworkResponse(createCursorResponse(0, BSONArray())); } @@ -572,13 +571,11 @@ TEST_F(DatabaseClonerTest, FirstCollectionListIndexesFailed) { // This affects the order of the network responses. { executor::NetworkInterfaceMock::InNetworkGuard guard(getNet()); - processNetworkResponse(createCountResponse(0)); processNetworkResponse(BSON("ok" << 0 << "errmsg" << "fake message" << "code" << ErrorCodes::CursorNotFound)); - processNetworkResponse(createCountResponse(0)); processNetworkResponse(createListIndexesResponse(0, BSON_ARRAY(idIndexSpec))); processNetworkResponse(createCursorResponse(0, BSONArray())); } @@ -624,7 +621,6 @@ TEST_F(DatabaseClonerTest, CreateCollections) { // This affects the order of the network responses. { executor::NetworkInterfaceMock::InNetworkGuard guard(getNet()); - processNetworkResponse(createCountResponse(0)); processNetworkResponse(createListIndexesResponse(0, BSON_ARRAY(idIndexSpec))); } ASSERT_TRUE(_databaseCloner->isActive()); @@ -636,7 +632,6 @@ TEST_F(DatabaseClonerTest, CreateCollections) { { executor::NetworkInterfaceMock::InNetworkGuard guard(getNet()); - processNetworkResponse(createCountResponse(0)); processNetworkResponse(createListIndexesResponse(0, BSON_ARRAY(idIndexSpec))); } ASSERT_TRUE(_databaseCloner->isActive()); |