On Tue, Mar 14, 2023 at 5:03 PM vignesh C <vignes...@gmail.com> wrote: > > On Tue, 14 Mar 2023 at 12:37, Peter Smith <smithpb2...@gmail.com> wrote: > > > > The same issue exists here too: > 1) > - if (toptxn != NULL && !rbtxn_has_catalog_changes(toptxn)) > + if (rbtxn_is_subtxn(txn)) > { > - toptxn->txn_flags |= RBTXN_HAS_CATALOG_CHANGES; > - dclist_push_tail(&rb->catchange_txns, > &toptxn->catchange_node); > + ReorderBufferTXN *toptxn = rbtxn_get_toptxn(txn); > > 2) > - if (change->txn->toptxn) > - topxid = change->txn->toptxn->xid; > + if (rbtxn_is_subtxn(change->txn)) > + topxid = rbtxn_get_toptxn(change->txn)->xid; > > If you plan to fix, bothe the above also should be handled. >
I don't know if it would be any better to change the above two as compared to what the proposed patch has. -- With Regards, Amit Kapila.