コード例 #1
0
ファイル: options.go プロジェクト: ming-hai/GoRedis
// DisableWAL completely disables the Write Ahead Log. Writes will not go
// to the log at all and may be lost in an event of process crash.
func (wo *WriteOptions) DisableWAL(b bool) {
	C.rocksdb_writeoptions_disable_WAL(wo.Opt, boolToInt(b))
}
コード例 #2
0
ファイル: options_write.go プロジェクト: unigraph/rdb
// DisableWAL sets whether WAL should be active or not.
// If true, writes will not first go to the write ahead log,
// and the write may got lost after a crash.
// Default: false
func (opts *WriteOptions) DisableWAL(value bool) {
	C.rocksdb_writeoptions_disable_WAL(opts.c, C.int(btoi(value)))
}