summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@verizonmedia.com>2020-07-15 17:09:58 +0200
committerGitHub <noreply@github.com>2020-07-15 17:09:58 +0200
commit0093a1340d19eb6aeb668eff9e9013767984ad8e (patch)
tree6ece401b9f20558e1b43e299685405c72a21062b /storage
parentcc006a0a1218ce5660f049222f3d087fa293696d (diff)
parent36e706b6e351e3ff315fed49c124865f599139cf (diff)
Merge pull request #13897 from vespa-engine/vekterli/use-atomic-operation-counting
Ensure operation counting is thread-safe
Diffstat (limited to 'storage')
-rw-r--r--storage/src/tests/persistence/filestorage/operationabortingtest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/storage/src/tests/persistence/filestorage/operationabortingtest.cpp b/storage/src/tests/persistence/filestorage/operationabortingtest.cpp
index e9f878bfe1e..93c484368de 100644
--- a/storage/src/tests/persistence/filestorage/operationabortingtest.cpp
+++ b/storage/src/tests/persistence/filestorage/operationabortingtest.cpp
@@ -31,9 +31,9 @@ class BlockingMockProvider : public PersistenceProviderWrapper
public:
typedef std::unique_ptr<BlockingMockProvider> UP;
- mutable uint32_t _bucketInfoInvocations;
- uint32_t _createBucketInvocations;
- uint32_t _deleteBucketInvocations;
+ mutable std::atomic<uint32_t> _bucketInfoInvocations;
+ std::atomic<uint32_t> _createBucketInvocations;
+ std::atomic<uint32_t> _deleteBucketInvocations;
BlockingMockProvider(spi::PersistenceProvider& wrappedProvider,
vespalib::Barrier& queueBarrier,