Created
May 2, 2010 15:57
-
-
Save droot/387231 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function freeze_db() { | |
rc = db.runCommand({fsync: 1, lock: 1}); | |
if (rc.ok == 1){ | |
return 1; | |
} else { | |
return 0; | |
} | |
} | |
freeze_db(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment