Commit fbbc56ce authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent d704b413
...@@ -236,7 +236,14 @@ func (s *storage) watcher() { ...@@ -236,7 +236,14 @@ func (s *storage) watcher() {
} }
}() }()
var errDown error
for { for {
if errDown != nil {
// XXX stop storage with errDown
//return errDown
return
}
addqFlush() // register staged AddWatch(s) addqFlush() // register staged AddWatch(s)
select { select {
...@@ -260,10 +267,10 @@ func (s *storage) watcher() { ...@@ -260,10 +267,10 @@ func (s *storage) watcher() {
// verify event.Tid ↑ (else e.g. δtail.Append will panic) // verify event.Tid ↑ (else e.g. δtail.Append will panic)
// if !↑ - stop the storage with error. // if !↑ - stop the storage with error.
if !(e.Tid > s.drvHead) { if !(e.Tid > s.drvHead) {
event = &EventError{fmt.Errorf( errDown = fmt.Errorf(
"%s: driver notified with δ.tid not ↑ (%s -> %s)", "%s: driver notified with δ.tid not ↑ (%s -> %s)",
s.URL(), s.drvHead, e.Tid)} s.URL(), s.drvHead, e.Tid)
// XXX also shutdown storage event = &EventError{errDown}
} else { } else {
s.drvHead = e.Tid s.drvHead = e.Tid
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment