// SetSync controls whether each write performed with this WriteOptions will // be flushed from the operating system buffer cache before the write is // considered complete. // // If called with true, this will signficantly slow down writes. If called // with false, and the host machine crashes, some recent writes may be // lost. The default is false. // // See the LevelDB documentation for details. func (wo *WriteOptions) SetSync(b bool) { C.rocksdb_writeoptions_set_sync(wo.Opt, boolToUchar(b)) }
// SetSync sets the sync mode. If true, the write will be flushed // from the operating system buffer cache before the write is considered complete. // If this flag is true, writes will be slower. // Default: false func (opts *WriteOptions) SetSync(value bool) { C.rocksdb_writeoptions_set_sync(opts.c, boolToChar(value)) }