Skip to content

add query to the warn_deprecated_quoted_param message - #6110

Open
rishitha957 wants to merge 1 commit into
bloomberg:mainfrom
rishitha957:warn
Open

add query to the warn_deprecated_quoted_param message#6110
rishitha957 wants to merge 1 commit into
bloomberg:mainfrom
rishitha957:warn

Conversation

@rishitha957

Copy link
Copy Markdown
Contributor

No description provided.

@roborivers roborivers left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cbuild submission: Error ⚠.
Regression testing: Success ✓.

The first 10 failing tests are:
sc_truncate_multiddl_generated [db unavailable at finish] **quarantined**
sc_resume_logicalsc_generated **quarantined**
ssl_san
consumer_non_atomic_default_consumer_generated **quarantined**
ssl_set_cmd
ssl_dbname
ssl_prefer
sc_downgrade [timeout] **quarantined**
reco-ddlk-sql [timeout] **quarantined**

Signed-off-by: Rishitha Kalicheti <rkalicheti1@bloomberg.net>

log spname instead of the whole query

Signed-off-by: Rishitha Kalicheti <rkalicheti1@bloomberg.net>

@roborivers roborivers left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cbuild submission: Error ⚠.
Regression testing: Success ✓.

The first 10 failing tests are:
sc_resume_logicalsc_generated **quarantined**
consumer_non_atomic_default_consumer_generated **quarantined**
sc_downgrade [timeout] **quarantined**
reco-ddlk-sql [timeout] **quarantined**

Comment thread lua/sp.c
if (!warn_once) {
warn_once = 1;
warn_deprecated_quoted_param(clnt->sp->spname);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a huge issue but the previous guarantee pthread_once is atomic. Maybe do this instead to keep this guarantee:

static int warn_once = 0;
if (XCHANGE32(warn_once, 1) == 0) {
    warn_deprecated_quoted_param(clnt->sp->spname);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants