Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server: only sleep to ensure clock monotonicity on server restart
This was broken in #72276 in an effort to fix a previous regression. It recovers the previous behavior of only sleeping when a server is being restarted, but doing so even if a max HLC upper bound has not been persisted. This fixes a regression in the speed of logic tests: ``` // before ok github.com/cockroachdb/cockroach/pkg/sql/opt/exec/execbuilder 53.891s // after ok github.com/cockroachdb/cockroach/pkg/sql/opt/exec/execbuilder 40.891s ```
- Loading branch information