Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
util: fix
retry.WithMaxAttempts
context cancelled before run.
If context gets cancelled right after `retry.WithMaxAttempts` runs, the function passed to it will never gets run. Now `retry.WithMaxAttempts` will at least run the function once otherwise an error will be returned. Making this change because there are places such as `show_cluster_setting.go` require the passed in function to be run at least once. Otherwise there will be seg fault. Fixes: 25600, 25603, 25570, 25567, 25566, 25511, 25485. Release note: None
- Loading branch information