Skip to content

Commit

Permalink
WL#6128, WL#6972
Browse files Browse the repository at this point in the history
Removed unused variable. Removed trailing white spaces.
  • Loading branch information
Luis Soares committed Sep 17, 2014
1 parent a1ce6ac commit 439a402
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion sql/rpl_gtid.h
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ class Sid_map
@return RETURN_STATUS_OK or RETURN_STAUTS_REPORTED_ERROR
*/
enum_return_status clear();
#endif
#endif
/**
Add the given SID to this map if it does not already exist.
Expand Down
4 changes: 0 additions & 4 deletions sql/rpl_gtid_state.cc
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ void Gtid_state::update_gtids_impl(THD *thd, bool is_commit)
if (thd->owned_gtid.sidno == -1)
{
#ifdef HAVE_GTID_NEXT_LIST
bool added= false;
rpl_sidno prev_sidno= 0;
Gtid_set::Gtid_iterator git(&thd->owned_gtid_set);
Gtid g= git.get();
Expand All @@ -224,10 +223,7 @@ void Gtid_state::update_gtids_impl(THD *thd, bool is_commit)
git.next();
g= git.get();
if (is_commit)
{
executed_gtids._add_gtid(g);
added= true;
}
}

if (is_commit && !thd->owned_gtid_set.is_empty())
Expand Down

0 comments on commit 439a402

Please sign in to comment.