コード例 #1
0
ファイル: options.go プロジェクト: C0rWin/fabric
// SetUseFsync enable/disable fsync.
//
// If true, then every store to stable storage will issue a fsync.
// If false, then every store to stable storage will issue a fdatasync.
// This parameter should be set to true while storing data to
// filesystem like ext3 that can lose files after a reboot.
// Default: false
func (opts *Options) SetUseFsync(value bool) {
	C.rocksdb_options_set_use_fsync(opts.c, C.int(btoi(value)))
}
コード例 #2
0
ファイル: options.go プロジェクト: CowLeo/qdb
func (o *Options) SetUseFsync(b bool) {
	C.rocksdb_options_set_use_fsync(o.Opt, boolToInt(b))
}