Race condition on disableTiming field closes #4808 (rebased) (#4885)

* Add test for #4808: Race condition on disableTiming field

Add test that verifies disableTiming field uses atomic.Bool instead of
plain bool to prevent race conditions.

The test checks that:
- disableTiming is declared as atomic.Bool
- shouldFetchTiming() uses atomic Load()
- getQueryTiming() uses atomic Store() operations
- Direct assignments that cause races are not present

This test will fail until the implementation is fixed.

* Fix #4808: Use atomic.Bool for disableTiming to prevent race condition
This commit is contained in:
Nathan Wallace
2025-11-16 00:12:33 +08:00
committed by GitHub
parent b1e9500c1b
commit 8568ff50e1

Diff Content Not Available