summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgregs <greg@10gen.com>2013-02-20 15:22:35 -0500
committergregs <greg@10gen.com>2013-02-20 15:26:52 -0500
commit01c2aa306374e440dc24f47c529ea075618aa20c (patch)
tree56f56e8c6af1165e5e851f95fe7958cee441628a
parentc8828dea771690082f949a367ac920aa7e463262 (diff)
downloadmongo-01c2aa306374e440dc24f47c529ea075618aa20c.tar.gz
SERVER-8596 cleanup upgradeId field after upgrade
-rw-r--r--src/mongo/s/config_upgrade_v3_to_v4.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/s/config_upgrade_v3_to_v4.cpp b/src/mongo/s/config_upgrade_v3_to_v4.cpp
index 87fd3b3be39..6b06753576b 100644
--- a/src/mongo/s/config_upgrade_v3_to_v4.cpp
+++ b/src/mongo/s/config_upgrade_v3_to_v4.cpp
@@ -640,8 +640,8 @@ namespace mongo {
newVersionInfo.setClusterId(newClusterId);
// Leave critical section
- newVersionInfo.setUpgradeId(OID());
- newVersionInfo.setUpgradeState(BSONObj());
+ newVersionInfo.unsetUpgradeId();
+ newVersionInfo.unsetUpgradeState();
log() << "writing new version info and clusterId " << newClusterId << "..." << endl;