rs better diags

This commit is contained in:
dwight
2010-08-01 11:42:16 -04:00
parent 9cd46ae5fa
commit 76bd2b4645
4 changed files with 25 additions and 11 deletions

View File

@@ -137,6 +137,10 @@ namespace mongo {
writelock lk("local.");
Client::Context cx( "local." );
cx.db()->flushFiles(true);
try {
log() << "replSet set minValid=" << minValid["ts"]._opTime().toString() << rsLog;
}
catch(...){}
Helpers::putSingleton("local.replset.minvalid", minValid);
// write an op from the primary to our oplog that existed when
// we started cloning. that will be our starting point.