Skip to content

Instantly share code, notes, and snippets.

@jnunemaker
Created June 12, 2012 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnunemaker/2914003 to your computer and use it in GitHub Desktop.
Save jnunemaker/2914003 to your computer and use it in GitHub Desktop.
mogodb get last synced time for slave in master/slave setup
db.command(BSON::OrderedHash['serverStatus', 1, 'repl', 1])['repl']['sources'].first['syncedTo']['time']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment