mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-06 19:07:50 +00:00
don't close disco on Server.Close
This commit is contained in:
parent
0e4a7a29fb
commit
a100a38b4a
2 changed files with 3 additions and 10 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue