Commit 61b2a2f5 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent f7396071
......@@ -756,7 +756,9 @@ retry:
head.pauseOSCacheUpload = true
head.continueOSCacheUpload = continueOSCacheUpload
if head.inflightOSCacheUploads != 0 {
// NOTE need atomic load, since inflightOSCacheUploads
// decrement is done not under zheadMu.
if atomic.LoadInt32(&head.inflightOSCacheUploads) != 0 {
head.zheadMu.Unlock()
continue retry
}
......
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