mirror of
https://github.com/NixOS/nix.git
synced 2025-11-11 21:16:02 +01:00
Rename SyncBase::read() -> readLock()
Make it explicit so it's clear what it's about when I and other contributors read its call sites.
This commit is contained in:
parent
95845d92f7
commit
6af40f488a
3 changed files with 3 additions and 3 deletions
|
|
@ -920,7 +920,7 @@ StorePathSet Store::exportReferences(const StorePathSet & storePaths, const Stor
|
|||
const Store::Stats & Store::getStats()
|
||||
{
|
||||
{
|
||||
auto state_(state.read());
|
||||
auto state_(state.readLock());
|
||||
stats.pathInfoCacheSize = state_->pathInfoCache.size();
|
||||
}
|
||||
return stats;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue