juicedata / juicefs

JuiceFS is a distributed POSIX file system built on top of Redis and S3.
https://juicefs.com
Apache License 2.0
10.95k stars 967 forks source link

Avoid concurrency between CloseSession and flushStats #5280

Closed polyrabbit closed 2 weeks ago

polyrabbit commented 2 weeks ago

It is possible that same fs stats will be increased/decreased twice, when CloseSession and flushStats run concurrently.