mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
Fix nextid
This commit is contained in:
parent
b6d63b8e17
commit
922cd5f41e
@ -70,10 +70,10 @@ retry: if( tid != NULL ) {
|
||||
break;
|
||||
|
||||
case 0:
|
||||
if ( data.size != sizeof(ID) ) {
|
||||
if ( data.size != sizeof( id ) ) {
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
"=> bdb_next_id: get size mismatch: expected %ld, got %ld\n",
|
||||
(long) sizeof( ID ), (long) data.size, 0 );
|
||||
(long) sizeof( id ), (long) data.size, 0 );
|
||||
rc = -1;
|
||||
goto done;
|
||||
}
|
||||
@ -87,6 +87,7 @@ retry: if( tid != NULL ) {
|
||||
}
|
||||
|
||||
id++;
|
||||
data.size = sizeof( id );
|
||||
|
||||
/* put new value */
|
||||
rc = bdb->bi_nextid->bdi_db->put( bdb->bi_nextid->bdi_db,
|
||||
|
Loading…
Reference in New Issue
Block a user