You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add deprecation notices for NoTLS and Coalesce constants.
* Replace OpenDBI with OpenDBISimple for simplified database handling.
---------
Co-authored-by: JkLondon <ilya@mikheev.fun>
Copy file name to clipboardExpand all lines: mdbx/env.go
+12-10Lines changed: 12 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -32,17 +32,19 @@ const (
32
32
EnvDefaults=C.MDBX_ENV_DEFAULTS
33
33
LifoReclaim=C.MDBX_LIFORECLAIM
34
34
//FixedMap = C.MDBX_FIXEDMAP // Danger zone. Map memory at a fixed address.
35
-
NoSubdir=C.MDBX_NOSUBDIR// Argument to Open is a file, not a directory.
36
-
Accede=C.MDBX_ACCEDE
37
-
Coalesce=C.MDBX_COALESCE
38
-
Readonly=C.MDBX_RDONLY// Used in several functions to denote an object as readonly.
39
-
WriteMap=C.MDBX_WRITEMAP// Use a writable memory map.
40
-
NoMetaSync=C.MDBX_NOMETASYNC// Don't fsync metapage after commit.
41
-
UtterlyNoSync=C.MDBX_UTTERLY_NOSYNC
42
-
SafeNoSync=C.MDBX_SAFE_NOSYNC
43
-
Durable=C.MDBX_SYNC_DURABLE
35
+
NoSubdir=C.MDBX_NOSUBDIR// Argument to Open is a file, not a directory.
36
+
Accede=C.MDBX_ACCEDE
37
+
// Deprecated: always turned on since v0.12, deprecated since v0.13
38
+
Coalesce=C.MDBX_COALESCE
39
+
Readonly=C.MDBX_RDONLY// Used in several functions to denote an object as readonly.
40
+
WriteMap=C.MDBX_WRITEMAP// Use a writable memory map.
41
+
NoMetaSync=C.MDBX_NOMETASYNC// Don't fsync metapage after commit.
42
+
UtterlyNoSync=C.MDBX_UTTERLY_NOSYNC
43
+
SafeNoSync=C.MDBX_SAFE_NOSYNC
44
+
Durable=C.MDBX_SYNC_DURABLE
45
+
// Deprecated: use NoStickyThreads instead because now they're sharing the same functionality
44
46
NoTLS=C.MDBX_NOTLS// Danger zone. When unset reader locktable slots are tied to their thread.
45
-
NoStickyThreads=C.MDBX_NOSTICKYTHREADS// Danger zone. Like MDBX_NOTLS. But also allow move RwTx between threads. Still require to call Begin/Rollback in stame thread.
47
+
NoStickyThreads=C.MDBX_NOSTICKYTHREADS// Danger zone. Like MDBX_NOTLS. But also allow move RwTx between threads. Still require to call Begin/Rollback in same thread.
46
48
//NoLock = C.MDBX_NOLOCK // Danger zone. MDBX does not use any locks.
47
49
NoReadahead=C.MDBX_NORDAHEAD// Disable readahead. Requires OS support.
0 commit comments