mirror of
https://git.telodendria.io/Telodendria/Cytoplasm.git
synced 2024-12-03 17:18:48 +03:00
[MOD/WIP] Disable thread-local storage for LMDB
DB locks ought to be enough...
This commit is contained in:
parent
004c53a028
commit
a90c66736c
2 changed files with 4 additions and 4 deletions
2
configure
vendored
2
configure
vendored
|
@ -113,7 +113,7 @@ if [ -n "$TLS_IMPL" ]; then
|
|||
fi
|
||||
|
||||
if [ -n "$EDB_IMPL" ]; then
|
||||
CFLAGS="${CFLAGS} -DEDB_IMPL=${EDB_IMPL}"
|
||||
CFLAGS="${CFLAGS} -D${EDB_IMPL}"
|
||||
LIBS="${LIBS} ${EDB_LIBS}"
|
||||
fi
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef EDB_IMPL
|
||||
#ifdef EDB_LMDB
|
||||
|
||||
#include <lmdb.h>
|
||||
|
||||
|
@ -568,7 +568,7 @@ DbOpenLMDB(char *dir, size_t size)
|
|||
return NULL;
|
||||
}
|
||||
mdb_env_set_maxdbs(env, 4);
|
||||
if ((code = mdb_env_open(env, dir, 0, 0644)) != 0)
|
||||
if ((code = mdb_env_open(env, dir, MDB_NOTLS, 0644)) != 0)
|
||||
{
|
||||
Log(LOG_ERR,
|
||||
"%s: could not open LMDB env: %s",
|
||||
|
@ -589,7 +589,7 @@ DbOpenLMDB(char *dir, size_t size)
|
|||
db->base.delete = LMDBDelete;
|
||||
db->base.exists = LMDBExists;
|
||||
db->base.close = LMDBClose;
|
||||
db->base.list = LMDBList; /* TODO: This one is gonna be Fun. */
|
||||
db->base.list = LMDBList;
|
||||
|
||||
return (Db *) db;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue