Merge pull request #4643 from oiooj/master

Fix restore functionality panics
pull/4652/head
Philip O'Toole 2015-11-03 08:04:28 -08:00
commit 7ddd306418
1 changed files with 1 additions and 0 deletions

View File

@ -158,6 +158,7 @@ func (cmd *Command) unpackMeta(mr *snapshot.MultiReader, sf snapshot.File, confi
store := meta.NewStore(config.Meta)
store.RaftListener = newNopListener()
store.ExecListener = newNopListener()
store.RPCListener = newNopListener()
// Determine advertised address.
_, port, err := net.SplitHostPort(config.Meta.BindAddress)