Skip to content

Conversation

@vitlibar
Copy link
Member

@vitlibar vitlibar commented Aug 3, 2025

This is a cherry-pick of apache#45100 to our branch.

…ache#45100)

### Rationale for this change

The `Status::message` function below has defined a static const string in the header file which may cause troubles in different translation units.

```
  const std::string& message() const {
    static const std::string no_message = "";
    return ok() ? no_message : state_->msg;
  }
```

### What changes are included in this PR?

Move the definition of `Status::message` function into the source file.

### Are these changes tested?

Pass CIs.

### Are there any user-facing changes?

No.
* GitHub Issue: apache#45099

Authored-by: Gang Wu <ustcwg@gmail.com>
Signed-off-by: Gang Wu <ustcwg@gmail.com>
(cherry picked from commit a2f1988)
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@github-actions
Copy link

github-actions bot commented Aug 3, 2025

❌ GitHub issue apache#45099 could not be retrieved.

@vitlibar vitlibar merged commit 68dd24e into ClickHouse/release/16.1.0 Aug 3, 2025
5 of 65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants