Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CBRD-25645] [bug-fix] Assert when restarting server after committing some XA transactions #5677

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/transaction/lock_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -8272,8 +8272,10 @@ lock_reacquire_crash_locks (THREAD_ENTRY * thread_p, LK_ACQUIRED_LOCKS * acqlock
* lock wait duration : LK_INFINITE_WAIT
* conditional lock request : false
*/
r = lock_internal_perform_lock_object (thread_p, tran_index, &acqlocks->obj[i].oid, &acqlocks->obj[i].class_oid,
acqlocks->obj[i].lock, LK_INFINITE_WAIT, &dummy_ptr, NULL);
r =
lock_internal_perform_lock_object (thread_p, tran_index, &acqlocks->obj[i].oid,
OID_IS_ROOTOID (&acqlocks->obj[i].oid) ? NULL : &acqlocks->obj[i].class_oid,
acqlocks->obj[i].lock, LK_INFINITE_WAIT, &dummy_ptr, NULL);
if (r != LK_GRANTED)
{
er_log_debug (ARG_FILE_LINE, "lk_reacquire_crash_locks: The lock cannot be reacquired...");
Expand Down
Loading