mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 16:34:14 +08:00
mdbx: clarify mdbx_oomkick() for LMDB-mode.
Change-Id: I6e38a1e2892084f8a5f98af7f947c1c9d2f18b9c
This commit is contained in:
parent
cdd7eadce7
commit
f335c13b45
10
mdb.c
10
mdb.c
@ -1977,6 +1977,8 @@ txnid_t mdb_find_oldest(MDB_env *env, int *laggard)
|
||||
static txnid_t __cold
|
||||
mdbx_oomkick(MDB_env *env, txnid_t oldest)
|
||||
{
|
||||
mdb_debug("DB size maxed out");
|
||||
#if MDBX_MODE_ENABLED
|
||||
int retry;
|
||||
txnid_t snap;
|
||||
|
||||
@ -1993,7 +1995,6 @@ mdbx_oomkick(MDB_env *env, txnid_t oldest)
|
||||
if (reader < 0)
|
||||
return 0;
|
||||
|
||||
#if MDBX_MODE_ENABLED
|
||||
{
|
||||
MDB_reader *r;
|
||||
pthread_t tid;
|
||||
@ -2023,11 +2024,10 @@ mdbx_oomkick(MDB_env *env, txnid_t oldest)
|
||||
}
|
||||
}
|
||||
}
|
||||
#else
|
||||
break;
|
||||
#endif /* MDBX_MODE_ENABLED */
|
||||
}
|
||||
|
||||
#else
|
||||
(void) mdb_reader_check(env, NULL);
|
||||
#endif /* MDBX_MODE_ENABLED */
|
||||
return mdb_find_oldest(env, NULL);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user