]> git.sur5r.net Git - openldap/commitdiff
More for prev commit, note when closing DB
authorHoward Chu <hyc@openldap.org>
Thu, 5 Feb 2009 10:39:47 +0000 (10:39 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 5 Feb 2009 10:39:47 +0000 (10:39 +0000)
servers/slapd/slapadd.c

index 211fa6386efed866526702ee0ecaaea31aea118c..383b6487cc8bc751f7d4066d84a9bad9416c856e 100644 (file)
@@ -467,6 +467,9 @@ slapadd( int argc, char **argv )
        ch_free( buf );
 
        if ( !dryrun ) {
+               if ( enable_meter ) {
+                       fprintf( stderr, "Closing DB..." );
+               }
                if( be->be_entry_close( be ) ) {
                        rc = EXIT_FAILURE;
                }
@@ -474,6 +477,9 @@ slapadd( int argc, char **argv )
                if( be->be_sync ) {
                        be->be_sync( be );
                }
+               if ( enable_meter ) {
+                       fprintf( stderr, "\n" );
+               }
        }
 
        if ( slap_tool_destroy())