Skip to content

Commit fbf9722

Browse files
author
JkLondon
committed
added nostickythreads
1 parent 0716920 commit fbf9722

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mdbx/env.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ func NewEnv(label Label) (*Env, error) {
161161
func (env *Env) Open(path string, flags uint, mode os.FileMode) error {
162162
cpath := C.CString(path)
163163
defer C.free(unsafe.Pointer(cpath))
164-
ret := C.mdbx_env_open(env._env, cpath, C.MDBX_env_flags_t(NoTLS|flags), C.mdbx_mode_t(mode))
164+
ret := C.mdbx_env_open(env._env, cpath, C.MDBX_env_flags_t(NoStickyThreads|flags), C.mdbx_mode_t(mode))
165165
return operrno("mdbx_env_open", ret)
166166
}
167167
func (env *Env) Label() Label { return env.label }

mdbx/env_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func TestEnv_Flags(t *testing.T) {
142142
return
143143
}
144144

145-
if flags&NoTLS == 0 {
145+
if flags&NoStickyThreads == 0 {
146146
t.Errorf("NoTLS is not set")
147147
}
148148

0 commit comments

Comments
 (0)