scalar: configure maintenance during 'reconfigure'

The 'scalar reconfigure' command is intended to update registered repos
with the latest settings available. However, up to now we were not
reregistering the repos with background maintenance.

In particular, this meant that the background maintenance schedule would
not be updated if there are improvements between versions.

Be sure to register repos for maintenance during the reconfigure step.

Signed-off-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Derrick Stolee
2024-09-20 00:00:23 +00:00
committed by Junio C Hamano
parent 4f5551957d
commit b9183b0a02
2 changed files with 8 additions and 2 deletions

View File

@ -723,6 +723,9 @@ static int cmd_reconfigure(int argc, const char **argv)
the_repository = old_repo;
if (toggle_maintenance(1) >= 0)
succeeded = 1;
loop_end:
if (!succeeded) {
res = -1;