mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 17:34:14 +08:00
mdbx: fix nasty 'inverted if-condition' inside mdbx_reader_check0().
Fix c2087f186ef5ae021bb1b9f6f8111e7b7eccffc1
This commit is contained in:
parent
ddc3787936
commit
760f7d1331
@ -9802,9 +9802,9 @@ int __cold mdbx_reader_check0(MDBX_env *env, int rdt_locked, int *dead) {
|
||||
for (unsigned i = 0; i < snap_nreaders; i++) {
|
||||
const mdbx_pid_t pid = mr[i].mr_pid;
|
||||
if (pid == 0)
|
||||
continue;
|
||||
if (pid != env->me_pid)
|
||||
continue;
|
||||
continue /* skip empty */;
|
||||
if (pid == env->me_pid)
|
||||
continue /* skip self */;
|
||||
if (mdbx_pid_insert(pids, pid) != 0)
|
||||
continue /* such pid already processed */;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user