From: Kurt Zeilenga Date: Tue, 26 Sep 2000 00:56:33 +0000 (+0000) Subject: Fix nextid X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1891 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=922cd5f41e42898573f7742cdf7cb7323f1645b9;p=openldap Fix nextid --- diff --git a/servers/slapd/back-bdb/nextid.c b/servers/slapd/back-bdb/nextid.c index ae61be9e5a..d3278f3e62 100644 --- a/servers/slapd/back-bdb/nextid.c +++ b/servers/slapd/back-bdb/nextid.c @@ -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,