diff options
author | Alaa Eddine Elamri <alaeddine.elamri@bareos.com> | 2022-10-21 17:56:49 +0300 |
---|---|---|
committer | Andreas Rogge <andreas.rogge@bareos.com> | 2022-11-07 19:16:28 +0300 |
commit | dee4a25256fdabc8ab601f3714eba834e395d587 (patch) | |
tree | 232010c290a102ea2c1179db8778cca10fe4938e /core | |
parent | 7f903c52bf86c154de67d6d0b4058d0fc797351c (diff) |
jcr_private: sd_msg_thread_done from volatile to atomic
Diffstat (limited to 'core')
-rw-r--r-- | core/src/dird/jcr_private.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/dird/jcr_private.h b/core/src/dird/jcr_private.h index d72e09e17..810ea58d9 100644 --- a/core/src/dird/jcr_private.h +++ b/core/src/dird/jcr_private.h @@ -139,7 +139,7 @@ struct JobControlRecordPrivate { int32_t reschedule_count{}; /**< Number of times rescheduled */ int32_t FDVersion{}; /**< File daemon version number */ int64_t spool_size{}; /**< Spool size for this job */ - volatile bool sd_msg_thread_done{}; /**< Set when Storage message thread done */ + std::atomic<bool> sd_msg_thread_done{}; /**< Set when Storage message thread done */ bool IgnoreDuplicateJobChecking{}; /**< Set in migration jobs */ bool IgnoreLevelPoolOverrides{}; /**< Set if a cmdline pool was specified */ bool IgnoreClientConcurrency{}; /**< Set in migration jobs */ |