SERVER-255 lock on fsync for snapshotting

will be doc'd later today
This commit is contained in:
unknown
2010-01-02 11:01:47 -05:00
parent 23326c222d
commit 84d1ca75f7
5 changed files with 335 additions and 220 deletions

View File

@@ -83,6 +83,7 @@ namespace mongo {
KillCurrentOp killCurrentOp;
int lockFile = 0;
unsigned lockedForWriting; // see FSyncCommand
void inProgCmd( Message &m, DbResponse &dbresponse ) {
BSONObjBuilder b;
@@ -104,6 +105,11 @@ namespace mongo {
}
}
b.append("inprog", vals);
unsigned x = lockedForWriting;
if( x ) {
b.append("fsyncLock", x);
b.append("info", "use command {unlock:0} to terminate the fsync write/snapshot lock");
}
}
replyToQuery(0, m, dbresponse, b.obj());