mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
f1302c40fe
Services are unfrozen before `initBackgroundReplication` is finished. This means that the globalReplicationStats write is racy. Switch to an atomic pointer. Provide the `ReplicationPool` with the stats, so it doesn't have to be grabbed from the atomic pointer on every use. All other loads and checks are nil, and calls return empty values when stats still haven't been initialized. |
||
---|---|---|
.. | ||
init.go | ||
singleton.go |