- if ( $connections > 0 ) {
- error( 1,
- "Skipping $dbpath since it has $connections active connections"
- );
- next;
- }
- }
-
- # Run the db_recover command on the environment.
- error( 0, "Running db_recover on $dbpath" );
- if ( system( $DB_RECOVER . " -h $dbpath >/dev/null 2>&1" ) ) {
- error( 1, "Failed to run db_recover on $dbpath" );
- next;
- }
-
- if ($do_verify) {
- error( 0, "Verifying $dbpath/cnid.db" );
- if ( system( $DB_VERIFY . " -q -h $dbpath cnid.db" ) ) {
- error( 1, "Verification of $dbpath/cnid.db failed" );
- next;