1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

ctdbd: Update debug messages for setting readonly property on database

Signed-off-by: Amitay Isaacs <amitay@gmail.com>

(This used to be ctdb commit 545a46437dfb2b755bb2fddb11dea8c4ccce3ed7)
This commit is contained in:
Amitay Isaacs 2013-07-04 09:04:49 +10:00
parent bcb64aa55f
commit c0798dfb64

View 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;
}