Skip to content

Commit

Permalink
fix uninitialized field warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
FooBarrior authored and sanja-byelkin committed Nov 19, 2023
1 parent 0427c47 commit 929532a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sql/handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2604,7 +2604,7 @@ static void xarecover_do_commit_or_rollback(handlerton *hton,
// Populate xid using the server_id from original transaction
x.set(member->xid, member->server_id);
else
(XID)x= *member->full_xid;
x= *member->full_xid;

rc= xarecover_decide_to_commit(member, ptr_commit_max) ?
hton->commit_by_xid(hton, &x) : hton->rollback_by_xid(hton, &x);
Expand Down
1 change: 1 addition & 0 deletions sql/handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -978,6 +978,7 @@ struct Online_alter_cache_list;
struct XA_data: XID
{
Online_alter_cache_list *online_alter_cache= NULL;
XA_data &operator=(const XID &x) { XID::operator=(x); return *this; }
};

/*
Expand Down
2 changes: 1 addition & 1 deletion sql/rpl_record.cc
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ int unpack_row(const rpl_group_info *rgi, TABLE *table, uint const colcnt,
st.next_null_byte();
if (!rpl_data.is_online_alter())
{
Field *result_field;
Field *result_field= NULL;
for (; i < colcnt && (result_field= table->field[i]); i++)
{
/*
Expand Down

0 comments on commit 929532a

Please sign in to comment.