add more debug log in RDB

v4
vinllen 5 years ago
parent 503e51d2a2
commit 23293da176
  1. 3
      src/redis-shake/restore.go
  2. 3
      src/redis-shake/sync.go

@ -173,9 +173,10 @@ func (dr *dbRestorer) restoreRDBFile(reader *bufio.Reader, target []string, auth
if filter.FilterKey(string(e.Key)) { if filter.FilterKey(string(e.Key)) {
continue continue
} }
utils.RestoreRdbEntry(c, e)
log.Debugf("routine[%v] restore key[%s] with value length[%v]", dr.id, e.Key, len(e.Value)) log.Debugf("routine[%v] restore key[%s] with value length[%v]", dr.id, e.Key, len(e.Value))
utils.RestoreRdbEntry(c, e)
log.Debugf("routine[%v] restore key[%s] ok", dr.id, e.Key)
} }
} }
}() }()

@ -438,8 +438,9 @@ func (ds *dbSyncer) syncRDBFile(reader *bufio.Reader, target []string, auth_type
continue continue
} }
} }
utils.RestoreRdbEntry(c, e)
log.Debugf("dbSyncer[%v] restore key[%s] with value length[%v]", ds.id, e.Key, len(e.Value)) log.Debugf("dbSyncer[%v] restore key[%s] with value length[%v]", ds.id, e.Key, len(e.Value))
utils.RestoreRdbEntry(c, e)
log.Debugf("routine[%v] restore key[%s] ok", ds.id, e.Key)
} }
} }
}() }()

Loading…
Cancel
Save