Skip to content

Commit 19134cb

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 aae1e8f commit 19134cb

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
@@ -1126,7 +1126,8 @@ static int cmd_reconfigure(int argc, const char **argv)
11261126
old_repo = the_repository;
11271127
the_repository = &r;
11281128

1129-
if (set_recommended_config(1) >= 0)
1129+
if (set_recommended_config(1) >= 0 &&
1130+
toggle_maintenance(1) >= 0)
11301131
succeeded = 1;
11311132

11321133
the_repository = old_repo;

0 commit comments

Comments
 (0)