Fix ITS#2905, properly detect duplicate entries

This commit is contained in:
Howard Chu 2004-01-12 03:54:01 +00:00
parent fbb72268fb
commit 778516cc8c

View File

@ -265,6 +265,10 @@ static int bdb_tool_next_id(
} else if ( !hole ) {
unsigned i;
if ( e->e_id == NOID ) {
return DB_KEYEXIST;
}
for ( i=0; i<nholes; i++) {
if ( holes[i].id == e->e_id ) {
int j;