From 0614b5fdbf6f2b1fe985e90505626269e661f4b3 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 30 Aug 2002 11:48:47 +0000 Subject: [PATCH] Fix unindent commit --- servers/slapd/back-bdb/idl.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/servers/slapd/back-bdb/idl.c b/servers/slapd/back-bdb/idl.c index 7a0704bab7..9dcde2352c 100644 --- a/servers/slapd/back-bdb/idl.c +++ b/servers/slapd/back-bdb/idl.c @@ -255,7 +255,19 @@ bdb_idl_fetch_key( int rc; DBT data; #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; + ID *i; + void *ptr; + size_t len; + int rc2; + int flags = bdb->bi_db_opflags | DB_MULTIPLE; #endif { @@ -275,18 +287,6 @@ bdb_idl_fetch_key( DBTzero( &data ); #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.ulen = sizeof(buf); data.flags = DB_DBT_USERMEM; -- 2.39.5