summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-04-28 13:44:31 -0400
committerEliot Horowitz <eliot@10gen.com>2010-04-28 13:44:31 -0400
commit6fab348c026866e663067068e28244a8afa28538 (patch)
treefb4318b0a43285ccf224a9482929a9980a38be0d
parent5c0d6731e86a5f1e1cc7dd467632de7672d5339a (diff)
downloadmongo-6fab348c026866e663067068e28244a8afa28538.tar.gz
fix shard version caching
-rw-r--r--s/strategy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/s/strategy.cpp b/s/strategy.cpp
index 7139b4fd43e..453b5e31f3c 100644
--- a/s/strategy.cpp
+++ b/s/strategy.cpp
@@ -76,7 +76,7 @@ namespace mongo {
dbcon.done();
}
- map<DBClientBase*,unsigned long long> checkShardVersionLastSequence;
+ map< pair<DBClientBase*,string> ,unsigned long long> checkShardVersionLastSequence;
class WriteBackListener : public BackgroundJob {
protected:
@@ -177,7 +177,7 @@ namespace mongo {
version = manager->getVersion( Shard::make( conn.getServerAddress() ) );
}
- unsigned long long & sequenceNumber = checkShardVersionLastSequence[ &conn ];
+ unsigned long long & sequenceNumber = checkShardVersionLastSequence[ make_pair(&conn,ns) ];
if ( sequenceNumber == officialSequenceNumber )
return;