mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Fix unindent commit
This commit is contained in:
parent
4a3a557827
commit
0614b5fdbf
@ -255,7 +255,19 @@ bdb_idl_fetch_key(
|
|||||||
int rc;
|
int rc;
|
||||||
DBT data;
|
DBT data;
|
||||||
#ifdef BDB_IDL_MULTI
|
#ifdef BDB_IDL_MULTI
|
||||||
|
/* buf must be large enough to grab the entire IDL in one
|
||||||
|
* get(), otherwise BDB 4 will leak resources on subsequent
|
||||||
|
* get's. We can safely call get() twice - once for the data,
|
||||||
|
* and once to get the DB_NOTFOUND result meaning there's
|
||||||
|
* no more data. See ITS#2040 for details.
|
||||||
|
*/
|
||||||
|
ID buf[BDB_IDL_DB_SIZE*5];
|
||||||
DBC *cursor;
|
DBC *cursor;
|
||||||
|
ID *i;
|
||||||
|
void *ptr;
|
||||||
|
size_t len;
|
||||||
|
int rc2;
|
||||||
|
int flags = bdb->bi_db_opflags | DB_MULTIPLE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -275,18 +287,6 @@ bdb_idl_fetch_key(
|
|||||||
DBTzero( &data );
|
DBTzero( &data );
|
||||||
|
|
||||||
#ifdef BDB_IDL_MULTI
|
#ifdef BDB_IDL_MULTI
|
||||||
/* buf must be large enough to grab the entire IDL in one
|
|
||||||
* get(), otherwise BDB 4 will leak resources on subsequent
|
|
||||||
* get's. We can safely call get() twice - once for the data,
|
|
||||||
* and once to get the DB_NOTFOUND result meaning there's
|
|
||||||
* no more data. See ITS#2040 for details.
|
|
||||||
*/
|
|
||||||
ID buf[BDB_IDL_DB_SIZE*5];
|
|
||||||
ID *i;
|
|
||||||
void *ptr;
|
|
||||||
size_t len;
|
|
||||||
int rc2;
|
|
||||||
int flags = bdb->bi_db_opflags | DB_MULTIPLE;
|
|
||||||
data.data = buf;
|
data.data = buf;
|
||||||
data.ulen = sizeof(buf);
|
data.ulen = sizeof(buf);
|
||||||
data.flags = DB_DBT_USERMEM;
|
data.flags = DB_DBT_USERMEM;
|
||||||
|
Loading…
Reference in New Issue
Block a user