mdbx: fix mischecking in mdbx_reader_check0() (coverity).

Change-Id: I2e3aaba1426c3b152a39b90f6d171380948da0a7
This commit is contained in:
Leo Yuriev 2017-07-04 11:51:40 +03:00
parent bf8507f3ec
commit 93d92db43d

View File

@ -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;
}