mdbx: cleanup inherited errno's bug.

Change-Id: I0635f4e4a224ff4516859d12cc72b77aac41beec
This commit is contained in:
Leo Yuriev 2016-02-04 06:09:19 +03:00
parent 425ac1cde6
commit b949bbd169

3
mdb.c
View File

@ -4780,9 +4780,6 @@ mdb_env_setup_locks(MDB_env *env, char *lpath, int mode, int *excl)
env->me_txns->mti_format, MDB_LOCK_FORMAT);
return MDB_VERSION_MISMATCH;
}
rc = errno;
if (rc && rc != EACCES && rc != EAGAIN)
return rc;
}
return MDB_SUCCESS;