Skip to content

Commit ea1fbd0

Browse files
committed
Merge 10.3 into 10.4
2 parents 96f4b4a + 392e744 commit ea1fbd0

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

dbug/dbug.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1994,11 +1994,10 @@ static void DBUGOpenFile(CODE_STATE *cs,
19941994
static void DBUGCloseFile(CODE_STATE *cs, sFILE *new_value)
19951995
{
19961996
sFILE *fp;
1997-
if (!cs || !cs->stack || !cs->stack->out_file)
1997+
if (!cs || !cs->stack || !(fp= cs->stack->out_file))
19981998
return;
19991999

2000-
fp= cs->stack->out_file;
2001-
if (--fp->used == 0)
2000+
if (fp != sstdout && fp != sstderr && --fp->used == 0)
20022001
{
20032002
if (fclose(fp->file) == EOF)
20042003
{

sql/slave.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* Copyright (c) 2000, 2017, Oracle and/or its affiliates.
2-
Copyright (c) 2009, 2020, MariaDB Corporation.
2+
Copyright (c) 2009, 2022, MariaDB Corporation
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License as published by
@@ -6628,8 +6628,8 @@ static int queue_event(Master_info* mi,const char* buf, ulong event_len)
66286628
can be satisfied only with the strict mode that ensures
66296629
against "genuine" gtid duplicates.
66306630
*/
6631-
rpl_gtid *gtid_in_slave_state=
6632-
mi->gtid_current_pos.find(mi->last_queued_gtid.domain_id);
6631+
IF_DBUG(rpl_gtid *gtid_in_slave_state=
6632+
mi->gtid_current_pos.find(mi->last_queued_gtid.domain_id),);
66336633

66346634
// Slave gtid state must not have updated yet to the last received gtid.
66356635
DBUG_ASSERT((mi->using_gtid == Master_info::USE_GTID_NO ||

0 commit comments

Comments
 (0)