Use atomic_init when initalising server->reload_status

This commit is contained in:
Mark Andrews
2021-01-04 16:03:08 +11:00
parent 5a8410dcf6
commit 72fa03a1e9

View File

@@ -9975,7 +9975,7 @@ named_server_create(isc_mem_t *mctx, named_server_t **serverp) {
CHECKFATAL(server->reload_event == NULL ? ISC_R_NOMEMORY
: ISC_R_SUCCESS,
"allocating reload event");
atomic_store(&server->reload_status, NAMED_RELOAD_IN_PROGRESS);
atomic_init(&server->reload_status, NAMED_RELOAD_IN_PROGRESS);
/*
* Setup the server task, which is responsible for coordinating