Skip to content

Commit b0dcb0d

Browse files
committed
Store fetch bucket handle in the bucket map
1 parent 1426c61 commit b0dcb0d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gcsfs/fs.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ func (fs *Fs) getBucket(name string) (stiface.BucketHandle, error) {
121121
if err != nil {
122122
return nil, err
123123
}
124+
fs.mu.Lock()
125+
fs.buckets[name] = bucket
126+
fs.mu.Unlock()
124127
}
125128
return bucket, nil
126129
}

0 commit comments

Comments
 (0)