static AttributeDescription *ad_olmMDBEntries;
+static AttributeDescription *ad_olmMDBPageSize;
+
/*
* NOTE: there's some confusion in monitor OID arc;
* by now, let's consider:
"NO-USER-MODIFICATION "
"USAGE dSAOperation )",
&ad_olmMDBEntries },
+
+ { "( olmMDBAttributes:7 "
+ "NAME ( 'olmMDBPageSize' ) "
+ "DESC 'DB page size' "
+ "SUP monitorCounter "
+ "NO-USER-MODIFICATION "
+ "USAGE dSAOperation )",
+ &ad_olmMDBPageSize },
{ NULL }
};
#endif /* MDB_MONITOR_IDX */
"$ olmMDBPagesMax $ olmMDBPagesUsed $ olmMDBPagesFree "
"$ olmMDBReadersMax $ olmMDBReadersUsed $ olmMDBEntries "
+ "$ olmMDBPageSize "
") )",
&oc_olmMDBDatabase },
bv.bv_len = snprintf( buf, sizeof( buf ), "%u", mei.me_numreaders );
ber_bvreplace( &a->a_vals[ 0 ], &bv );
+ a = attr_find( e->e_attrs, ad_olmMDBPageSize );
+ assert( a != NULL );
+ bv.bv_val = buf;
+ bv.bv_len = snprintf( buf, sizeof( buf ), "%u", mst.ms_psize );
+ ber_bvreplace( &a->a_vals[ 0 ], &bv );
+
rc = mdb_txn_begin( mdb->mi_dbenv, NULL, MDB_RDONLY, &txn );
if ( !rc ) {
MDB_cursor *cursor;
}
/* alloc as many as required (plus 1 for objectClass) */
- a = attrs_alloc( 1 + 7 );
+ a = attrs_alloc( 1 + 8 );
if ( a == NULL ) {
rc = 1;
goto cleanup;
next->a_desc = ad_olmMDBEntries;
attr_valadd( next, &bv, NULL, 1 );
next = next->a_next;
+
+ next->a_desc = ad_olmMDBPageSize;
+ attr_valadd( next, &bv, NULL, 1 );
+ next = next->a_next;
}
{