Skip to content

Commit 33be707

Browse files
pooknullhors
andauthored
K8SPXC-625: improve logs for PITR (#1129)
https://jira.percona.com/browse/K8SPXC-625 Add count of all and remaining binlogs to restore logs Co-authored-by: Viacheslav Sarzhan <[email protected]>
1 parent 6fa92e2 commit 33be707

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmd/pitr/recoverer/recoverer.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,9 @@ func (r *Recoverer) recover() (err error) {
258258
if err != nil {
259259
return errors.Wrap(err, "drop collector funcs")
260260
}
261-
for _, binlog := range r.binlogs {
262-
log.Println("working with", binlog)
261+
for i, binlog := range r.binlogs {
262+
remaining := len(r.binlogs) - i
263+
log.Printf("working with %s, %d out of %d remaining\n", binlog, remaining, len(r.binlogs))
263264
if r.recoverType == Date {
264265
binlogArr := strings.Split(binlog, "_")
265266
if len(binlogArr) < 2 {

0 commit comments

Comments
 (0)