Multiple portability issues in archived logs test

Bug #1255019 reported by Alexey Kopytov on 2013-11-26
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup
Low
Alexey Kopytov
2.1
Low
Alexey Kopytov
2.2
Low
Alexey Kopytov

Bug Description

xb_apply_archived_logs.sh contains many unnecessary constructs based on GNU extensions to standard Unix utilties.

Examples:

   local lsn=`echo $i | sed -s 's/ib_log_archive_\([0-9]\+\)/\1/'`

This construct 1) doesn't need '-s' and 2) uses extended regexp syntax

 for i in `find . -type f -printf "%T+ %p\n" | cut -d' ' -f2`;

This construct doesn't actually need -printf and all subsequent pushups to normalize the custom filename format.

Related branches

lp:~akopytov/percona-xtrabackup/bug1255019-2.1
Merged into lp:percona-xtrabackup/2.1 at revision 708
George Ormond Lorch III: Approve (g2) on 2014-01-02
lp:~akopytov/percona-xtrabackup/bug1255019-2.2
Merged into lp:percona-xtrabackup/2.2 at revision 4918
George Ormond Lorch III: Approve (g2) on 2014-01-02
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers