reduce vacuuming lognoise
authorChristian Ambach <christian.ambach@de.ibm.com>
Tue, 8 Dec 2009 18:23:19 +0000 (19:23 +0100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 11 Jan 2010 22:48:29 +0000 (09:48 +1100)
syslog.h says:

LOG_NOTICE      5    normal but significant condition
LOG_INFO        6    informational

several vacuuming related logs logged at NOTICE level although I don't see
any real significance, these are just informational messages for me

Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
server/ctdb_vacuum.c

index 52054ad33bb8fb79a9f6ff450a246beb08a31442..98be294495e5be0b6339c336601d49f88c21bb72 100644 (file)
@@ -267,7 +267,7 @@ static int ctdb_vacuum_db(struct ctdb_db_context *ctdb_db, struct vacuum_data *v
                /* for records where we are not the lmaster, tell the lmaster to fetch the record */
                if (ctdb->vnn_map->map[i] != ctdb->pnn) {
                        TDB_DATA data;
-                       DEBUG(DEBUG_NOTICE,("Found %u records for lmaster %u in '%s'\n", 
+                       DEBUG(DEBUG_INFO,("Found %u records for lmaster %u in '%s'\n", 
                                                                vdata->list[i]->count, i, name));
 
                        data.dsize = talloc_get_size(vdata->list[i]);
@@ -459,7 +459,7 @@ static int ctdb_repack_tdb(struct tdb_context *tdb, TALLOC_CTX *mem_ctx, struct
                return -1;              
        }
 
-       DEBUG(DEBUG_NOTICE,(__location__ " %u records vacuumed\n", vdata->vacuumed));
+       DEBUG(DEBUG_INFO,(__location__ " %u records vacuumed\n", vdata->vacuumed));
        
        if (vdata->traverse_error) {
                DEBUG(DEBUG_ERR,(__location__ " Error during traversal\n"));
@@ -501,7 +501,7 @@ static int ctdb_repack_tdb(struct tdb_context *tdb, TALLOC_CTX *mem_ctx, struct
                DEBUG(DEBUG_ERR,(__location__ " Failed to commit\n"));
                return -1;
        }
-       DEBUG(DEBUG_NOTICE,(__location__ " %u records copied\n", vdata->copied));
+       DEBUG(DEBUG_INFO,(__location__ " %u records copied\n", vdata->copied));
 
        return 0;
 }
@@ -555,7 +555,7 @@ static int update_tuning_db(struct ctdb_db_context *ctdb_db, struct vacuum_data
                    vdata->delete_count < vdata->vacuum_limit) {
                        if (tdata.last_interval < ctdb_db->ctdb->tunable.vacuum_max_interval) {
                                tdata.new_interval = tdata.last_interval * 110 / 100;
-                               DEBUG(DEBUG_NOTICE,("Increasing vacuum interval %u -> %u for %s\n", 
+                               DEBUG(DEBUG_INFO,("Increasing vacuum interval %u -> %u for %s\n", 
                                        tdata.last_interval, tdata.new_interval, ctdb_db->db_name));
                        }
                } else {
@@ -651,7 +651,7 @@ static int ctdb_repack_db(struct ctdb_db_context *ctdb_db, TALLOC_CTX *mem_ctx)
                return 0;
        }
 
-       DEBUG(DEBUG_NOTICE,("Repacking %s with %u freelist entries and %u records to delete\n", 
+       DEBUG(DEBUG_INFO,("Repacking %s with %u freelist entries and %u records to delete\n", 
                        name, size, vdata->delete_count));
 
        /*