summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_lc.h
diff options
context:
space:
mode:
authorJesse Williamson <jwilliamson@suse.de>2017-04-26 14:26:38 +0200
committerJesse Williamson <jwilliamson@suse.de>2017-04-28 09:10:55 +0200
commit0aefb5af158e35b2bea38c8d0c31e1d2e274fdbe (patch)
tree79d81b6853680932e9097d92562c77c0b5cb4d6b /src/rgw/rgw_lc.h
parentMerge pull request #14831 from smithfarm/wip-stress-split (diff)
downloadceph-0aefb5af158e35b2bea38c8d0c31e1d2e274fdbe.tar.xz
ceph-0aefb5af158e35b2bea38c8d0c31e1d2e274fdbe.zip
rgw: migrate atomic_t to std::atomic<>
Signed-off-by: Jesse Williamson <jwilliamson@suse.de>
Diffstat (limited to 'src/rgw/rgw_lc.h')
-rw-r--r--src/rgw/rgw_lc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rgw/rgw_lc.h b/src/rgw/rgw_lc.h
index 61edd78aac7..e66735e3a2c 100644
--- a/src/rgw/rgw_lc.h
+++ b/src/rgw/rgw_lc.h
@@ -9,7 +9,6 @@
#include "common/debug.h"
#include "include/types.h"
-#include "include/atomic.h"
#include "include/rados/librados.hpp"
#include "common/Mutex.h"
#include "common/Cond.h"
@@ -19,6 +18,8 @@
#include "rgw_multi.h"
#include "cls/rgw/cls_rgw_types.h"
+#include <atomic>
+
using namespace std;
#define HASH_PRIME 7877
#define MAX_ID_LEN 255
@@ -227,7 +228,7 @@ class RGWLC {
RGWRados *store;
int max_objs;
string *obj_names;
- atomic_t down_flag;
+ std::atomic<bool> down_flag = { false };
string cookie;
class LCWorker : public Thread {