innobackupex --slave-info report a single "m" instead of "slave info" in std output.

Bug #1727920 reported by jixiangqd
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Status tracked in 2.4
2.4
Fix Released
High
Vasily Nemkov

Bug Description

Version: xtrabackup 2.4.8

I found it in

storage/innobase/xtrabackup/src/backup_mysql.cc 1388:1391
```
  if (tmp_mysql_slave_position) {
   mysql_slave_position += '\n';
   mysql_slave_position += *tmp_mysql_slave_position;
  }
```

while tmp_mysql_slave_position is typeof "char *", so that it extract "tmp_mysql_slave_position"'s first char "m" and added into output str "mysql_slave_position".
And the line 1389 is not necessary here, while earlier version's output infos inline.

this problem will fixed easy with this patch(tested):

```
  if (tmp_mysql_slave_position) {
   mysql_slave_position += tmp_mysql_slave_position;
  }
```

Thanks you guys.

jixiangqd (jixiangqd)
no longer affects: centos
Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXB-510

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.