Pause event loop while FETCHing to prevetn EXPUNGE

This commit is contained in:
Michal Horejsek
2020-07-23 09:09:52 +02:00
parent 9d65192ad7
commit 2269a9edb7
6 changed files with 33 additions and 5 deletions

View File

@ -26,6 +26,10 @@ import (
bolt "go.etcd.io/bbolt"
)
func (loop *eventLoop) IsRunning() bool {
return loop.isRunning
}
// TestSync triggers a sync of the store.
func (store *Store) TestSync() {
store.lock.Lock()