fixup "replication/driver: enforce ordering during initial replication in order to support encrypted send": correctly propagate non-inital parent failures

This commit is contained in:
Christian Schwarz
2020-04-19 11:29:38 +02:00
parent d59b64df86
commit c1c9d99a6f
2 changed files with 43 additions and 19 deletions
+5
View File
@@ -40,3 +40,8 @@ func (l *L) DropWhile(f func()) {
defer l.Unlock().Lock()
f()
}
func (l *L) HoldWhile(f func()) {
defer l.Lock().Unlock()
f()
}