ctdbd: Update debug messages for setting readonly property on database
authorAmitay Isaacs <amitay@gmail.com>
Wed, 3 Jul 2013 23:04:49 +0000 (09:04 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Wed, 10 Jul 2013 04:32:52 +0000 (14:32 +1000)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
(This used to be ctdb commit 545a46437dfb2b755bb2fddb11dea8c4ccce3ed7)

ctdb/server/ctdb_ltdb_server.c

index b5a27ded494020118d26cf0015fc6c5a57b1e690..d7f741b62c29bd0d10428c81c678e0623c221865 100644 (file)
@@ -706,7 +706,7 @@ int ctdb_set_db_readonly(struct ctdb_context *ctdb, struct ctdb_db_context *ctdb
        }
 
        if (ctdb_db->persistent) {
-               DEBUG(DEBUG_ERR,("Trying to set persistent database with readonly property\n"));
+               DEBUG(DEBUG_ERR,("Persistent databases do not support readonly property\n"));
                return -1;
        }
 
@@ -728,6 +728,9 @@ int ctdb_set_db_readonly(struct ctdb_context *ctdb, struct ctdb_db_context *ctdb
        DEBUG(DEBUG_NOTICE,("OPENED tracking database : '%s'\n", ropath));
 
        ctdb_db->readonly = true;
+
+       DEBUG(DEBUG_NOTICE, ("Readonly property set on DB %s\n", ctdb_db->db_name));
+
        talloc_free(ropath);
        return 0;
 }