[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#7955) [LMDB] remove logically dead code

Full_Name: Jean-Christophe Dubois
Version: 2.4.40
OS: Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

In mdb_cursor_prev() there is some dead code as the (op == MDB_PREV_DUP) cannot
be reached in the else block of the following if condition:

if (op == MDB_PREV || op == MDB_PREV_DUP) {
} else {
   if (op == MDB_PREV_DUP)

The dead code can be removed.

Patch available at the following URL: