MB-19251: Fix race in updating Vbucket.file{SpaceUsed,Size}
[ep-engine.git] / src / vbucket.h
index f41ecfe..864ef71 100644 (file)
@@ -426,8 +426,8 @@ public:
     AtomicValue<size_t>  metaDataDisk;
 
     AtomicValue<size_t>  numExpiredItems;
-    volatile size_t  fileSpaceUsed;
-    volatile size_t  fileSize;
+    AtomicValue<size_t>  fileSpaceUsed;
+    AtomicValue<size_t>  fileSize;
 
 private:
     template <typename T>