mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-18 04:44:17 -05:00
db mismatch (including patch mismatch) should be an error
This commit is contained in:
parent
320c291455
commit
9198281e9e
1 changed files with 4 additions and 2 deletions
|
|
@ -507,12 +507,14 @@ bdb_back_initialize(
|
|||
#endif
|
||||
|
||||
ver = (major << 24) | (minor << 16) | patch;
|
||||
if( ver < DB_VERSION_FULL ) {
|
||||
Debug( LDAP_DEBUG_TRACE,
|
||||
if( ver != DB_VERSION_FULL ) {
|
||||
/* fail if a versions don't match */
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
LDAP_XSTRING(bdb_back_initialize) ": "
|
||||
"BDB library version mismatch:"
|
||||
" expected " DB_VERSION_STRING ","
|
||||
" got %s\n", version, 0, 0 );
|
||||
return -1;
|
||||
}
|
||||
|
||||
Debug( LDAP_DEBUG_TRACE, LDAP_XSTRING(bdb_back_initialize)
|
||||
|
|
|
|||
Loading…
Reference in a new issue