don't close disco on Server.Close

This commit is contained in:
Kuba Podgórski 2021-01-14 17:47:06 +01:00
parent 0e4a7a29fb
commit a100a38b4a
2 changed files with 3 additions and 10 deletions

View file

@ -688,13 +688,13 @@ func (s *Server) Close() error {
var errhs error
var errc error
if s.disCo != nil {
errd = s.disCo.Close()
}
if s.cluster != nil {
errc = s.cluster.close()
}
errhs = s.syncer.stopTranslationSync()
// if s.disCo != nil {
// errd = s.disCo.Close()
// }
if s.holder != nil {
errh = s.holder.Close()
}

View file

@ -421,13 +421,6 @@ func MustRunCluster(tb testing.TB, size int, opts ...[]server.CommandOption) *Cl
return cluster
}
func appendOpts(opts [][]server.CommandOption, cfgs []*server.Config) [][]server.CommandOption {
for i := range opts {
opts[i] = append(opts[i], server.OptCommandConfig(cfgs[i]))
}
return opts
}
// prependOpts applies prependTestServerOpts to each of the ops (one per
// node, or one for the entire cluser).
func prependOpts(opts [][]server.CommandOption, size int) [][]server.CommandOption {