From b949bbd169154fc2b488663fb625bad9108b37a9 Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Thu, 4 Feb 2016 06:09:19 +0300 Subject: [PATCH] mdbx: cleanup inherited errno's bug. Change-Id: I0635f4e4a224ff4516859d12cc72b77aac41beec --- mdb.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/mdb.c b/mdb.c index 03412f9e..458c541e 100644 --- a/mdb.c +++ b/mdb.c @@ -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;