Add log output to wipedb and backupdb
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 4 Jul 2011 20:29:00 +0000 (06:29 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 6 Jul 2011 03:19:36 +0000 (13:19 +1000)
CQ S1025379

tools/ctdb.c

index 674622a68afa129dabbf86a5a019f316964d4702..ec9481e96b9813f657ed8364cc9725c574c69d68 100644 (file)
@@ -4142,6 +4142,9 @@ done:
                        DEBUG(DEBUG_ERR,("close failed: %s\n", strerror(errno)));
                }
        }
+
+       DEBUG(DEBUG_ERR,("Database acked up to %s\n", argv[1]));
+
        talloc_free(tmp_ctx);
        return status;
 }
@@ -4585,6 +4588,8 @@ static int control_wipedb(struct ctdb_context *ctdb, int argc,
                return -1;
        }
 
+       DEBUG(DEBUG_ERR, ("Database wiped.\n"));
+
        talloc_free(tmp_ctx);
        return 0;
 }