Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scylla_prepare + scylla_cpuset_setup: make scylla_cpuset_setup idempo…
…tent without introducing regressions This patch fixes the regression introduced by 3a51e78 which broke a very important contract: perftune.yaml should not be "touched" by Scylla scriptology unless explicitly requested. And a call for scylla_cpuset_setup is such an explicit request. The issue that the offending patch was intending to fix was that cpuset.conf was always generated anew for every call of scylla_cpuset_setup - even if a resulting cpuset.conf would come out exactly the same as the one present on the disk before tha call. And since the original code was following the contract mentioned above it was also deleting perftune.yaml every time too. However, this was just an unavoidable side-effect of that cpuset.conf re-generation. The above also means that if scylla_cpuset_setup doesn't write to cpuset.conf we should not "touch" perftune.yaml and vise versa. This patch implements exactly that together with reverting the dangerous logic introduced by 3a51e78. Fixes scylladb#11385 Fixes scylladb#10121
- Loading branch information