Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bareos/bareos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorAlaa Eddine Elamri <alaeddine.elamri@bareos.com>2022-10-24 11:20:15 +0300
committerAndreas Rogge <andreas.rogge@bareos.com>2022-11-07 19:16:28 +0300
commit098a464acdcf74063d5412d9047a12a8cfb169eb (patch)
tree7e4d0ea44cc8bd4b2d9dc59aadbdd826d378efc1 /core
parent6c265ec52d1968b0c5f5e573833fe260e48ee30a (diff)
remove volatile from swap_device
Diffstat (limited to 'core')
-rw-r--r--core/src/stored/dev.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/stored/dev.h b/core/src/stored/dev.h
index ef4225313..4aca812ad 100644
--- a/core/src/stored/dev.h
+++ b/core/src/stored/dev.h
@@ -65,6 +65,8 @@
#include "stored/volume_catalog_info.h"
#include <vector>
+#include <atomic>
+
template <typename T> class dlist;
namespace storagedaemon {
@@ -203,7 +205,7 @@ class Device {
public:
Device() = default;
virtual ~Device();
- Device* volatile swap_dev{}; /**< Swap vol from this device */
+ Device* swap_dev{}; /**< Swap vol from this device */
std::vector<DeviceControlRecord*> attached_dcrs; /**< Attached DeviceControlRecords */
pthread_mutex_t mutex_ = PTHREAD_MUTEX_INITIALIZER; /**< Access control */
pthread_mutex_t spool_mutex = PTHREAD_MUTEX_INITIALIZER; /**< Mutex for updating spool_size */