Created
August 14, 2013 07:52
-
-
Save mani95lisa/6228829 to your computer and use it in GitHub Desktop.
This file contains 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