#ifdef NEW_LOGGING
LDAP_LOG(( "backend", LDAP_LEVEL_DETAIL1,
- "attr_index_config: index %s 0x%04x\n",
+ "attr_index_config: index %s 0x%04lx\n",
ad->ad_cname.bv_val, mask ));
#else
- Debug( LDAP_DEBUG_CONFIG, "index %s 0x%04x\n",
+ Debug( LDAP_DEBUG_CONFIG, "index %s 0x%04lx\n",
ad->ad_cname.bv_val, mask, 0 );
#endif
#include <ac/socket.h>
#include <ac/string.h>
#include <ac/time.h>
+#include <ac/unistd.h>
#include <sys/stat.h>
#include "slap.h"
int rc, flags;
DBCache *db;
Datum key, data;
- struct ldbminfo *li = (struct ldbminfo *) be->be_private;
#ifdef NEW_LOGGING
LDAP_LOG(( "backend", LDAP_LEVEL_ENTRY,
Attribute *attr;
struct berval bv;
- AttributeDescription *ad_objectClass = slap_schema.si_ad_objectClass;
const char *group_oc_name = NULL;
const char *group_at_name = group_at->ad_cname.bv_val;
int
id2entry_add( Backend *be, Entry *e )
{
- struct ldbminfo *li = (struct ldbminfo *) be->be_private;
DBCache *db;
Datum key, data;
int len, rc, flags;
{
int rc, flags;
Datum data;
- struct ldbminfo *li = (struct ldbminfo *) be->be_private;
#ifdef LDBM_DEBUG_IDL
idl_check(idl);
data.dptr = (char *) idl;
data.dsize = (ID_BLOCK_IDS_OFFSET + ID_BLOCK_NMAXN(idl)) * sizeof(ID);
+ flags = LDBM_REPLACE;
+ rc = ldbm_cache_store( db, key, data, flags );
+
#ifdef LDBM_DEBUG
Statslog( LDAP_DEBUG_STATS, "<= idl_store(): rc=%d\n",
rc, 0, 0, 0, 0 );
#endif
- flags = LDBM_REPLACE;
- rc = ldbm_cache_store( db, key, data, flags );
-
/* Debug( LDAP_DEBUG_TRACE, "<= idl_store %d\n", rc, 0, 0 ); */
return( rc );
}
ID id
)
{
- int i, j, first, rc;
+ int i, j, first, rc = 0;
ID_BLOCK *idl, *tmp, *tmp2, *tmp3;
Datum k2;
{
slap_mask_t mask = 0;
slap_mask_t tmpmask = 0;
- int lindex = 0;
if( type->sat_sup ) {
/* recurse */
{
int rc;
- struct ldbm_backend_info *lbi
- = (struct ldbm_backend_info *) bi->bi_private;
-
/* initialize the underlying database system */
rc = ldbm_initialize( NULL );
return rc;
Modifications ml;
struct berval *vals[2];
char textbuf[SLAP_TEXT_BUFLEN]; /* non-returnable */
- size_t textlen;
vals[0] = hash;
vals[1] = NULL;
ml.sml_next = NULL;
rc = ldbm_modify_internal( be,
- conn, op, op->o_ndn, &ml, e, text, textbuf, textlen );
+ conn, op, op->o_ndn, &ml, e, text, textbuf,
+ sizeof( textbuf ) );
/* FIXME: ldbm_modify_internal may set *tex = textbuf,
* which is BAD */