Method: Backup::Database::MongoDB#lock

Defined in:
lib/backup/database/mongodb.rb

#lockObject

Forces mongod to flush all pending write operations to the disk and locks the entire mongod instance to prevent additional writes until the dump is complete.

Note that if Profiling is enabled, this will disable it and will not re-enable it after the dump is complete.



39
40
41
# File 'lib/backup/database/mongodb.rb', line 39

def lock
  @lock
end