Instantly share code, notes, and snippets.

Embed
What would you like to do?
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