Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions cmd/redis-shake/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,13 @@ func main() {
var theReader reader.Reader
if config.Config.Type == "sync" {
theReader = reader.NewPSyncReader(source.Address, source.Username, source.Password, source.IsTLS, source.ElastiCachePSync)
} else if config.Config.Type == "restore" {
theReader = reader.NewRDBReader(source.RDBFilePath)
} else if config.Config.Type == "restore" { // TODO: new aof reader
if source.RDBFilePath != "" {
theReader = reader.NewRDBReader(source.RDBFilePath)
} else {
theReader = reader.NewAOFReader(source.AOFFilePath) // 如果是mp-aof 用户传入 manifest文件的地址 ,其他的传递aof的地址
}

} else if config.Config.Type == "scan" {
theReader = reader.NewScanReader(source.Address, source.Username, source.Password, source.IsTLS)
} else {
Expand Down
Loading