summaryrefslogtreecommitdiff
path: root/src/mongo/client/parallel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/parallel.cpp')
-rw-r--r--src/mongo/client/parallel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/client/parallel.cpp b/src/mongo/client/parallel.cpp
index a1dd6811386..9995ee4c46a 100644
--- a/src/mongo/client/parallel.cpp
+++ b/src/mongo/client/parallel.cpp
@@ -660,7 +660,9 @@ namespace mongo {
warning() << "Weird shift of primary detected" << endl;
compatiblePrimary = primary && state->primary && primary == state->primary;
- compatibleManager = manager && state->manager && manager->compatibleWith( state->manager, shard );
+ compatibleManager = manager &&
+ state->manager &&
+ manager->compatibleWith(*state->manager, shard.getName());
if( compatiblePrimary || compatibleManager ){
// If we're compatible, don't need to retry unless forced