예제 #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
// 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)))
}