Skip to content

Commit b036ff3

Browse files
JkLondonJkLondon
andauthored
added nostickythreads (#202)
Co-authored-by: JkLondon <me@ilyamikheev.com>
1 parent dd2fa5f commit b036ff3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ func TestEnv_Flags(t *testing.T) {
142142
return
143143
}
144144

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

149149
err = env.SetFlags(SafeNoSync)

0 commit comments

Comments
 (0)