mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 17:04:13 +08:00
mdbx: fix mischecking in mdbx_reader_check0() (coverity).
Change-Id: I2e3aaba1426c3b152a39b90f6d171380948da0a7
This commit is contained in:
parent
bf8507f3ec
commit
93d92db43d
@ -10279,7 +10279,7 @@ int __cold mdbx_reader_check0(MDBX_env *env, int rdt_locked, int *dead) {
|
||||
/* stale reader found */
|
||||
if (!rdt_locked) {
|
||||
err = mdbx_rdt_lock(env);
|
||||
if (MDBX_IS_ERROR(rc)) {
|
||||
if (MDBX_IS_ERROR(err)) {
|
||||
rc = err;
|
||||
break;
|
||||
}
|
||||
@ -10296,7 +10296,7 @@ int __cold mdbx_reader_check0(MDBX_env *env, int rdt_locked, int *dead) {
|
||||
continue;
|
||||
|
||||
err = mdbx_rpid_check(env, pid);
|
||||
if (MDBX_IS_ERROR(rc)) {
|
||||
if (MDBX_IS_ERROR(err)) {
|
||||
rc = err;
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user