marsadm: fix semantics of cron, rename log-delete to log-delete-one

Now the systematics is fixed.
This commit is contained in:
Thomas Schoebel-Theuer 2017-09-27 07:19:27 +02:00
parent c26a62da2b
commit cd70495c0f

View File

@ -2439,7 +2439,7 @@ sub logdelete_res {
lprint "no logfiles are deletable.\n" if $verbose;
return;
}
if ($cmd ne "log-delete-all") {
if ($cmd eq "log-delete-one") {
$max_deletable = $min_deletable + 1; # delete only the first one
}
@ -4915,7 +4915,7 @@ my %cmd_table =
"For details and best practices, please refer to the PDF manual.",
\&logrotate_res,
],
"log-delete"
"log-delete-one"
=> [
"When possible, globally delete at most one old transaction logfile",
"which is known to be superfluous, i.e. all secondaries no longer",
@ -4925,7 +4925,7 @@ my %cmd_table =
"or log-delete-all.",
\&logdelete_res,
],
"log-delete-all"
"log-delete"
=> [
"When possible, globally delete all old transaction logfiles which",
"are known to be superflous, i.e. all secondaries no longer need",
@ -4936,6 +4936,11 @@ my %cmd_table =
"For details and best practices, please refer to the PDF manual.",
\&logdelete_res,
],
"log-delete-all"
=> [
"Alias for log-delete",
\&logdelete_res,
],
"cron"
=> [
"usage: cron (no parameters)",