mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
f49a9297c2
Sometimes when an unexpected error occurs the cacher would set an error and return. However, it would not broadcast the condition signal in that case, therefore leaving the goroutine that runs readChunkAt stuck forever. I figured that the condition is unnecessary because readChunkAt is acquiring a lock that is still held by the cacher goroutine anyway. Callees of startCaching have to wait for a WaitGroup which makes sure that readChunkAt can't acquire the lock before startCaching. This way readChunkAt can execute normally and check for the error. |
||
---|---|---|
.. | ||
cluster | ||
command | ||
filer | ||
ftpd | ||
glog | ||
iamapi | ||
images | ||
mount | ||
mq | ||
notification | ||
operation | ||
pb | ||
query | ||
remote_storage | ||
replication | ||
s3api | ||
security | ||
sequence | ||
server | ||
shell | ||
static | ||
stats | ||
storage | ||
topology | ||
util | ||
wdclient | ||
Makefile | ||
weed.go |