Repository navigation
Conversation
Member
|
Thank you for this contribution, and sorry for closing it without a merge. This project has paused pull requests from outside its maintainers. It is maintained with the help of AI agents, and text from unknown sources can carry instructions aimed at them. There is no reliable defence against that yet. The full explanation is here: https://github.com/xiam/.github/blob/main/CONTRIBUTING.md Bug reports are still welcome as issues, and a person reads each one first. You are also free to keep your change in a fork. Thank you for understanding. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #703.
On the first call to compile a SQL layout, multiple readers could initialize the shared template map while holding only the read lock. The lookup now just reads the map (a nil map is a normal cache miss); the first insertion initializes it under the existing write lock.
The regression releases 16 callers into a fresh layout and checks their compiled results. On unmodified master the Go race detector reports competing accesses in
getTemplate; with the fix the regression passed 100 consecutive runs with-race.make test-unitpassed, including the SQLite and QL adapter contracts. The external adapter suites compiled with-tags 'integration pq', andgo vet ./internal/sqladapter/exqlpassed. The external database services were not run locally.AI assistance: OpenAI Codex developed the change and regression test and ran the local checks.