Repository navigation
Add missing <atomic> include in DeserializationPrefixesCache - #108678
Conversation
612519b to
32cb61d
Compare
`std::atomic_bool` requires `<atomic>`, which was previously pulled in transitively via `<mutex>` in libc++ C++20 mode. After PR ClickHouse#92523 removed transitive libc++ includes (`_LIBCPP_REMOVE_TRANSITIVE_INCLUDES=1`) and the codebase moved to C++23 (where `<mutex>` no longer includes `<atomic>` even without that flag), the include became missing and the build breaks. Related: ClickHouse#92523
32cb61d to
68d7aee
Compare
|
Force push cleaned LLM bloat from commit message and then changing associated email address to properly associate the CLA to my github account. |
…rialization-prefixes-cache
|
Workflow [PR], commit [9bb1b46] Summary: ✅
AI ReviewSummaryThis PR fixes the missing Findings
Final Verdict
|
|
Merged the latest The only red check on the previous run was
The AI review verdict is ✅ Approve and there are no unresolved review threads. Pushing the merge re-triggers CI. |
|
The current CI run on the post-merge commit
No code change needed. The fix is correct (the header declares |
|
The remaining red check,
Neither test touches |
…include-deserialization-prefixes-cache
|
Re-merged the latest The reason for the re-merge (beyond clearing the "behind This exact noise is now allowlisted in No code change needed. The PR is already approved and the AI review verdict is ✅ Approve. |
|
The fresh This is a leftover-state flake from the It is a broad master-wide flake (the The root-cause fix is already in flight: #109042 (allowlists this exact message in |
…include-deserialization-prefixes-cache
| #pragma once | ||
|
|
||
| #include <DataTypes/Serializations/ISerialization.h> | ||
| #include <atomic> |
There was a problem hiding this comment.
This still leaves the header dependent on transitive STL includes. DeserializationPrefixesCache.h also declares std::optional<...> prefixes below, but neither this file nor ISerialization.h includes <optional> directly. That means the same clean-build fragility the PR description is fixing for std::atomic_bool can recur here as soon as an unrelated header stops dragging <optional> in. Please add #include <optional> while touching this include block.
There was a problem hiding this comment.
As long as everything works in our CI, this does not matter.
…ic-include-deserialization-prefixes-cache Add missing `<atomic>` include in `DeserializationPrefixesCache`
DeserializationPrefixesCache.husesstd::atomic_boolbut does not include<atomic>.This was previously masked by two independent factors:
<mutex>conditionally includes<atomic>(#if _LIBCPP_STD_VER <= 20). ClickHouse uses C++23, so this condition is false and the transitive include never fires._LIBCPP_REMOVE_TRANSITIVE_INCLUDES=1to the bundled libcxx build, which removes transitive includes regardless of standard version.Either change alone is sufficient to break a clean build. The breakage is invisible in CI because sccache reuses object files compiled before these changes landed — only a fresh build from scratch exposes it.
Related: #92523
Changelog category (leave one):
Version info
26.7.1.1305(included in26.7and later)