Added pg_advisory_xact_lock* detection

v3.0_4799_4827
Rahim Kanji 1 year ago
parent 40be1158c2
commit b368b281ee

@ -1856,8 +1856,8 @@ void PgSQL_Connection::ProcessQueryAndSetStatusFlags(char* query_digest_text) {
set_status(false, STATUS_MYSQL_CONNECTION_LOCK_TABLES);
}
}
if (get_status(STATUS_MYSQL_CONNECTION_GET_LOCK) == false) { // we search for get_lock if not already set
if (strcasestr(query_digest_text, "GET_LOCK(")) {
if (get_status(STATUS_MYSQL_CONNECTION_GET_LOCK) == false) { // we search for pg_advisory_xact_lock* if not already set
if (strcasestr(query_digest_text, "SELECT pg_advisory_xact_lock")) {
set_status(true, STATUS_MYSQL_CONNECTION_GET_LOCK);
}
}

Loading…
Cancel
Save