support target.db in rump mode

v4
vinllen 5 years ago
parent 047bf142f1
commit e2b6ecd037
  1. 3
      src/redis-shake/rump.go

@ -339,6 +339,9 @@ func (dre *dbRumperExecutor) writer() {
log.Debugf("dbRumper[%v] executor[%v] skip key %s for expired", dre.rumperId, dre.executorId, ele.key)
continue
}
if conf.Options.TargetDB != -1 {
ele.db = conf.Options.TargetDB
}
log.Debugf("dbRumper[%v] executor[%v] restore[%s], length[%v]", dre.rumperId, dre.executorId, ele.key,
len(ele.value))

Loading…
Cancel
Save