func (env *Env) Sync(force int) error { ret := C.mdb_env_sync(env._env, C.int(force)) if ret != SUCCESS { return Errno(ret) } return nil }
func (env *Env) Sync(force int) error { ret := C.mdb_env_sync(env._env, C.int(force)) return errno(ret) }
// Sync flushes buffers to disk. If force is true a synchronous flush occurs // and ignores any NoSync or MapAsync flag on the environment. // // See mdb_env_sync. func (env *Env) Sync(force bool) error { ret := C.mdb_env_sync(env._env, cbool(force)) return operrno("mdb_env_sync", ret) }