Skip to content

Commit 3ddcf2b

Browse files
derrickstoleemjcheetham
authored andcommitted
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 <[email protected]>
1 parent a434437 commit 3ddcf2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scalar.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,8 @@ static int cmd_reconfigure(int argc, const char **argv)
11301130
old_repo = the_repository;
11311131
the_repository = &r;
11321132

1133-
if (set_recommended_config(1) >= 0)
1133+
if (set_recommended_config(1) >= 0 &&
1134+
toggle_maintenance(1) >= 0)
11341135
succeeded = 1;
11351136

11361137
the_repository = old_repo;

0 commit comments

Comments
 (0)