Diff with a simple fix built in version 2.0.6
diff --git a/client/dbclient.h b/client/dbclient.h
index ea55bb4..c305d4a 100644
--- a/client/dbclient.h
+++ b/client/dbclient.h
@@ -114,7 +114,7 @@ namespace mongo {
};
class DBClientBase;
-
+extern boost::function1<void, DBClientBase*> resetShardVersionCB;
/**
* ConnectionString handles parsing different ways to connect to mongo and determining method
* samples:
@@ -747,7 +747,9 @@ namespace mongo {
DBClientBase() {
_writeConcern = W_NORMAL;
}
-
+ ~DBClientBase() {
+ resetShardVersionCB( this );
+ }
WriteConcern getWriteConcern() const { return _writeConcern; }
void setWriteConcern( WriteConcern w ) { _writeConcern = w; }
- is duplicated by
-
SERVER-7461 Possible for simultaneous aggressive chunk reload on many connections to prevent all shard versioning
-
- Closed
-
- is related to
-
SERVER-7606 Refactor how shard version information is associated with each connection
-
- Closed
-