Commit cf304b0e authored by Filip Široký's avatar Filip Široký

zonestatus: update doc, fix newline for +event-timers, remove +event-status (unused)

parent de8ad136
......@@ -82,6 +82,10 @@ transactions will be aborted!
Show global statistics counter(s). To print also counters with value 0, use
force option.
.TP
\fBzone\-status\fP \fIzone\fP [\fIfilter\fP]
Show the zone status. (*)
Filters are type, serial, transaction, event\-timers, and freeze with prefix \(aq+\(aq.
.TP
\fBzone\-check\fP [\fIzone\fP\&...]
Test if the server can load the zone. Semantic checks are executed if enabled
in the configuration. (*)
......@@ -142,10 +146,6 @@ Purge zone data, file, journal, and timers.
Show zone statistics counter(s). To print also counters with value 0, use
force option.
.TP
\fBzone\-status\fP \fIzone\fP [\fIfilter\fP]
Show the zone status. (*)
Filters are type, serial, next\-event, auto\-dnssec, transaction, event\-timers with prefix \(aq+\(aq.
.TP
\fBzone\-freeze\fP [\fIzone\fP\&...]
Temporarily postpone zone\-changing events (load, refresh, update, flush, and
DNSSEC signing).
......
......@@ -59,6 +59,10 @@ Actions
Show global statistics counter(s). To print also counters with value 0, use
force option.
**zone-status** *zone* [*filter*]
Show the zone status. (*)
Filters are type, serial, transaction, event-timers, and freeze with prefix '+'.
**zone-check** [*zone*...]
Test if the server can load the zone. Semantic checks are executed if enabled
in the configuration. (*)
......@@ -119,10 +123,6 @@ Actions
Show zone statistics counter(s). To print also counters with value 0, use
force option.
**zone-status** *zone* [*filter*]
Show the zone status. (*)
Filters are type, serial, next-event, auto-dnssec, transaction, event-timers with prefix '+'.
**zone-freeze** [*zone*...]
Temporarily postpone zone-changing events (load, refresh, update, flush, and
DNSSEC signing).
......
......@@ -166,9 +166,6 @@ static zone_status_param zone_status_param_check(const char *param)
if (strcmp(param, "+event-timers") == 0) {
return ZONE_STATUS_EVENT_TIMERS;
}
if (strcmp(param, "+event-status") == 0) {
return ZONE_STATUS_EVENT_STATUS;
}
if (strcmp(param, "+freeze") == 0) {
return ZONE_STATUS_FREEZE;
}
......@@ -265,6 +262,7 @@ static int zone_status(zone_t *zone, ctl_args_t *args)
}
}
// list modules
bool ctl_type = (param == ZONE_STATUS_EVENT_TIMERS)? true : false; //for +event-status
if (param == ZONE_STATUS_EVENT_TIMERS || param == ZONE_STATUS_NONE) {
time_t ev_time;
for (zone_event_type_t i = 0; i < ZONE_EVENT_COUNT; i++) {
......@@ -285,7 +283,8 @@ static int zone_status(zone_t *zone, ctl_args_t *args)
}
data[KNOT_CTL_IDX_DATA] = buff;
ret = knot_ctl_send(args->ctl, KNOT_CTL_TYPE_EXTRA, &data);
ret = knot_ctl_send(args->ctl, (ctl_type)? KNOT_CTL_TYPE_DATA : KNOT_CTL_TYPE_EXTRA, &data);
ctl_type = false;
if (ret != KNOT_EOK) {
return ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment