module Mongo::Commands::Fsync

Overview

Forces the mongod process to flush all pending writes from the storage layer to disk and locks the entire mongod instance to prevent additional writes until the user releases the lock with a corresponding fsyncUnlock.

Optionally, you can use fsync to lock the mongod instance and block write operations for the purpose of capturing backups.

NOTE for more details, please check the official MongoDB documentation.

Extended Modules

Defined in:

cryomongo/commands/admin/fsync.cr

Instance Method Summary

Instance Method Detail

def command(options) #

Returns a pair of OP_MSG body and sequences associated with the command and arguments.


[View source]
def result(bson : BSON) #

Transforms the server result.


[View source]