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

(ITS#7961) [LMDB] remove logically dead code (2nd)



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


In function mdb_txn_begin() at line 2672 there is a check for the parent
pointer.

The same check is done few lines earlier (line 2665) and if the condition was
met the program would have skip the all section to ok:

So code line 2673 can never be reached. It could be removed.

Patch available at URL below: 

https://github.com/jcdubois/lmdb/commit/a3770a5fef56417ceea677efbbde768755188af4

JC