]> git.sur5r.net Git - openldap/commitdiff
cleanup names
authorPierangelo Masarati <ando@openldap.org>
Fri, 8 Sep 2006 22:10:49 +0000 (22:10 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 8 Sep 2006 22:10:49 +0000 (22:10 +0000)
servers/slapd/back-bdb/back-bdb.h
servers/slapd/back-bdb/monitor.c

index f1e8e31498f51f46ca6143b31c49484af2eee1ec..4db9b13572a008a0286853caeffc2c95851eadc0 100644 (file)
@@ -150,12 +150,12 @@ struct bdb_db_info {
        DB                      *bdi_db;
 };
 
-typedef struct bdb_monitor_cleanup_t {
+typedef struct bdb_monitor_t {
        void            *bdm_cb;
-       struct berval   bdm_base;
+       struct berval   bdm_nbase;
        int             bdm_scope;
        struct berval   bdm_filter;
-} bdb_monitor_cleanup_t;
+} bdb_monitor_t;
 
 /* From ldap_rq.h */
 struct re_s;
@@ -203,7 +203,7 @@ struct bdb_info {
        alock_info_t    bi_alock_info;
        char            *bi_db_config_path;
        BerVarray       bi_db_config;
-       bdb_monitor_cleanup_t   bi_monitor_cleanup;
+       bdb_monitor_t   bi_monitor;
        int             bi_flags;
 #define        BDB_IS_OPEN             0x01
 #define        BDB_HAS_CONFIG  0x02
index 7901a8361e562d14935d39966c1f7d4d611b59ee..734e6e2b3e3dabe00db02fa76f3ab78e1c2cc966 100644 (file)
@@ -368,10 +368,10 @@ bdb_monitor_open( BackendDB *be )
         * base="cn=Databases,cn=Monitor", scope=LDAP_SCOPE_ONE 
         * and filter="(namingContexts:distinguishedNameMatch:=<suffix>)" */
 
-       bdb->bi_monitor_cleanup.bdm_scope = LDAP_SCOPE_ONELEVEL;
-       base = &bdb->bi_monitor_cleanup.bdm_base;
+       bdb->bi_monitor.bdm_scope = LDAP_SCOPE_ONELEVEL;
+       base = &bdb->bi_monitor.bdm_nbase;
        BER_BVSTR( base, "cn=databases,cn=monitor" );
-       filter = &bdb->bi_monitor_cleanup.bdm_filter;
+       filter = &bdb->bi_monitor.bdm_filter;
        BER_BVZERO( filter );
 
        suffix.bv_len = ldap_bv2escaped_filter_value_len( &be->be_nsuffix[ 0 ] );
@@ -504,7 +504,7 @@ cleanup:;
        }
 
        /* store for cleanup */
-       bdb->bi_monitor_cleanup.bdm_cb = (void *)cb;
+       bdb->bi_monitor.bdm_cb = (void *)cb;
 
        /* we don't need to keep track of the attributes, because
         * bdb_monitor_free() takes care of everything */
@@ -523,18 +523,18 @@ bdb_monitor_close( BackendDB *be )
 {
        struct bdb_info         *bdb = (struct bdb_info *) be->be_private;
 
-       if ( !BER_BVISNULL( &bdb->bi_monitor_cleanup.bdm_filter ) ) {
+       if ( !BER_BVISNULL( &bdb->bi_monitor.bdm_filter ) ) {
                monitor_back_unregister_entry_callback( NULL,
-                       (monitor_callback_t *)bdb->bi_monitor_cleanup.bdm_cb,
-                       &bdb->bi_monitor_cleanup.bdm_base,
-                       bdb->bi_monitor_cleanup.bdm_scope,
-                       &bdb->bi_monitor_cleanup.bdm_filter );
+                       (monitor_callback_t *)bdb->bi_monitor.bdm_cb,
+                       &bdb->bi_monitor.bdm_nbase,
+                       bdb->bi_monitor.bdm_scope,
+                       &bdb->bi_monitor.bdm_filter );
 
-               if ( !BER_BVISNULL( &bdb->bi_monitor_cleanup.bdm_filter ) ) {
-                       ch_free( bdb->bi_monitor_cleanup.bdm_filter.bv_val );
+               if ( !BER_BVISNULL( &bdb->bi_monitor.bdm_filter ) ) {
+                       ch_free( bdb->bi_monitor.bdm_filter.bv_val );
                }
 
-               memset( &bdb->bi_monitor_cleanup, 0, sizeof( bdb->bi_monitor_cleanup ) );
+               memset( &bdb->bi_monitor, 0, sizeof( bdb->bi_monitor ) );
        }
 
        return 0;