diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-04-28 13:44:31 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-04-28 13:44:31 -0400 |
commit | 6fab348c026866e663067068e28244a8afa28538 (patch) | |
tree | fb4318b0a43285ccf224a9482929a9980a38be0d | |
parent | 5c0d6731e86a5f1e1cc7dd467632de7672d5339a (diff) | |
download | mongo-6fab348c026866e663067068e28244a8afa28538.tar.gz |
fix shard version caching
-rw-r--r-- | s/strategy.cpp | 4 |
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; |