Skip to content

Commit cdbd96b

Browse files
derrickstoleedscho
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 586c593 commit cdbd96b

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
@@ -1158,7 +1158,8 @@ static int cmd_reconfigure(int argc, const char **argv)
11581158
old_repo = the_repository;
11591159
the_repository = &r;
11601160

1161-
if (set_recommended_config(1) >= 0)
1161+
if (set_recommended_config(1) >= 0 &&
1162+
toggle_maintenance(1) >= 0)
11621163
succeeded = 1;
11631164

11641165
the_repository = old_repo;

0 commit comments

Comments
 (0)