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
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

jobs:
build:
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions cmd/redis-shake/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ 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" { // TODO: new aof reader
} else if config.Config.Type == "restore" {
if source.RDBFilePath != "" {
theReader = reader.NewRDBReader(source.RDBFilePath)
} else {
theReader = reader.NewAOFReader(source.AOFFilePath) // 如果是mp-aof 用户传入 manifest文件的地址 ,其他的传递aof的地址
theReader = reader.NewAOFReader(source.AOFFilePath)
}

} else if config.Config.Type == "scan" {
Expand Down
6 changes: 4 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ module github.com/alibaba/RedisShake
go 1.17

require (
github.com/go-redis/redis v6.15.9+incompatible
github.com/pelletier/go-toml/v2 v2.0.0-beta.3
github.com/rs/zerolog v1.28.0
github.com/yuin/gopher-lua v0.0.0-20220504180219-658193537a64
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect
github.com/onsi/ginkgo v1.16.5 // indirect
github.com/onsi/gomega v1.27.10 // indirect
golang.org/x/sys v0.10.0 // indirect
)
201 changes: 199 additions & 2 deletions go.sum

Large diffs are not rendered by default.

Loading