Skip to content
Snippets Groups Projects
Commit d7535d4d authored by Howard Chu's avatar Howard Chu
Browse files

ITS#5189 revert index.c 1.67, just catch LDAP_OTHER

parent bb1d8dfc
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,6 @@
#include <ac/string.h>
#include <ac/socket.h>
#include <ac/errno.h>
#include "slap.h"
#include "back-bdb.h"
......@@ -289,11 +288,7 @@ done:
case DB_LOCK_DEADLOCK:
case DB_LOCK_NOTGRANTED:
break;
/* BDB also returns standard errno values */
case ENOMEM:
rc = LDAP_NO_MEMORY;
break;
/* Don't let any other BDB-specific errors thru */
/* Anything else is bad news */
default:
rc = LDAP_OTHER;
}
......
......@@ -532,6 +532,7 @@ ID bdb_tool_entry_put(
if( rc != 0 ) {
snprintf( text->bv_val, text->bv_len,
"index_entry_add failed: %s (%d)",
rc == LDAP_OTHER ? "Internal error" :
db_strerror(rc), rc );
Debug( LDAP_DEBUG_ANY,
"=> " LDAP_XSTRING(bdb_tool_entry_put) ": %s\n",
......@@ -571,6 +572,7 @@ done:
TXN_ABORT( tid );
snprintf( text->bv_val, text->bv_len,
"txn_aborted! %s (%d)",
rc == LDAP_OTHER ? "Internal error" :
db_strerror(rc), rc );
Debug( LDAP_DEBUG_ANY,
"=> " LDAP_XSTRING(bdb_tool_entry_put) ": %s\n",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment