mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 21:22:09 -04:00
fix: dev: Fix wrong variable in named_server_sync() log message
named_server_sync() logged isc_result_totext(result) but returns tresult. The loop accumulates errors into tresult, so result only holds the last iteration's value. If the last view succeeded but an earlier one failed, the log would incorrectly say "success". Merge branch 'mnowak/fix-server-sync-log' into 'main' See merge request isc-projects/bind9!12090
This commit is contained in:
commit
f8a222b1d8
1 changed files with 1 additions and 1 deletions
|
|
@ -11807,7 +11807,7 @@ named_server_sync(named_server_t *server, isc_lex_t *lex, isc_buffer_t *text) {
|
|||
isc_log_write(NAMED_LOGCATEGORY_GENERAL, NAMED_LOGMODULE_SERVER,
|
||||
ISC_LOG_INFO, "dumping all zones%s: %s",
|
||||
cleanup ? ", removing journal files" : "",
|
||||
isc_result_totext(result));
|
||||
isc_result_totext(tresult));
|
||||
return tresult;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue