mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
ctdb-recoverd: Improve logging when recovery lock file is changed
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
db32a2bce5
commit
668ed53662
@ -3473,7 +3473,7 @@ static int update_recovery_lock_file(struct ctdb_context *ctdb)
|
||||
|
||||
if (reclockfile == NULL) {
|
||||
if (ctdb->recovery_lock_file != NULL) {
|
||||
DEBUG(DEBUG_ERR,("Reclock file disabled\n"));
|
||||
DEBUG(DEBUG_NOTICE,("Recovery lock file disabled\n"));
|
||||
talloc_free(ctdb->recovery_lock_file);
|
||||
ctdb->recovery_lock_file = NULL;
|
||||
ctdb_recovery_unlock(ctdb);
|
||||
@ -3483,6 +3483,8 @@ static int update_recovery_lock_file(struct ctdb_context *ctdb)
|
||||
}
|
||||
|
||||
if (ctdb->recovery_lock_file == NULL) {
|
||||
DEBUG(DEBUG_NOTICE,
|
||||
("Recovery lock file enabled (%s)\n", reclockfile));
|
||||
ctdb->recovery_lock_file = talloc_strdup(ctdb, reclockfile);
|
||||
ctdb_recovery_unlock(ctdb);
|
||||
talloc_free(tmp_ctx);
|
||||
@ -3495,6 +3497,8 @@ static int update_recovery_lock_file(struct ctdb_context *ctdb)
|
||||
return 0;
|
||||
}
|
||||
|
||||
DEBUG(DEBUG_NOTICE,
|
||||
("Recovery lock file changed (now %s)\n", reclockfile));
|
||||
talloc_free(ctdb->recovery_lock_file);
|
||||
ctdb->recovery_lock_file = talloc_strdup(ctdb, reclockfile);
|
||||
ctdb_recovery_unlock(ctdb);
|
||||
|
Loading…
Reference in New Issue
Block a user