diff options
author | Tor Brede Vekterli <vekterli@oath.com> | 2018-03-09 16:03:30 +0000 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@oath.com> | 2018-03-09 16:04:08 +0000 |
commit | 4bcbacf9fb32d62d9f75a2fd3aa56873cfbff761 (patch) | |
tree | 132c118cfe954c5f36542f039596c2163a0e573e | |
parent | df1feb6477dd4d030c0f93063ef3893717cd14d3 (diff) |
Must take mutex when updating bucket space statistics
-rw-r--r-- | storage/src/vespa/storage/distributor/distributor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/src/vespa/storage/distributor/distributor.cpp b/storage/src/vespa/storage/distributor/distributor.cpp index f5e77c6a172..41ef0f2dcef 100644 --- a/storage/src/vespa/storage/distributor/distributor.cpp +++ b/storage/src/vespa/storage/distributor/distributor.cpp @@ -444,6 +444,7 @@ BucketSpacesStatsProvider::BucketSpacesStats Distributor::make_invalid_stats_per } void Distributor::invalidate_bucket_space_stats() { + vespalib::LockGuard guard(_metricLock); _bucketSpacesStats = BucketSpacesStatsProvider::PerNodeBucketSpacesStats(); auto invalid_space_stats = make_invalid_stats_per_configured_space(); |