multi: make sure missionControlStore catches done signal
This commit makes sure `missionControlStore` catches the shutdown signal when draining the ticker. A few debug logs are added to aid the process.
This commit is contained in:
6 files changed
+25
-10
No files matched your search
@@ -149,6 +149,9 @@ func (d *DecayedLog) initBuckets() error {
|
||||
|
||||
// Stop halts the garbage collector and closes boltdb.
|
||||
func (d *DecayedLog) Stop() error {
|
||||
log.Debugf("DecayedLog shutting down...")
|
||||
defer log.Debugf("DecayedLog shutdown complete")
|
||||
|
||||
if !atomic.CompareAndSwapInt32(&d.stopped, 0, 1) {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user