Skip to content

Commit

Permalink
sync LUA script from rdb
Browse files Browse the repository at this point in the history
  • Loading branch information
suxb201 committed Sep 11, 2022
1 parent 30a09a8 commit d58c809
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/rdb/rdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ func (ld *Loader) parseRDBEntry(rd *bufio.Reader) {
log.PanicError(err)
}
log.Infof("RDB repl-stream-db: %d", ld.replStreamDbId)
} else if key == "lua" {
e := entry.NewEntry()
e.Argv = []string{"script", "load", value}
e.IsBase = true
ld.ch <- e
log.Infof("LUA script: [%s]", value)
} else {
log.Infof("RDB AUX fields. key=[%s], value=[%s]", key, value)
}
Expand Down

0 comments on commit d58c809

Please sign in to comment.