]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rgw/rgw_loadgen_process.cc
update sources to v12.1.0
[ceph.git] / ceph / src / rgw / rgw_loadgen_process.cc
index 23e6fefca73e7d4ea1749f4034ee797792e75605..fef37f805bac9cca414756d006c6344f38089944 100644 (file)
@@ -39,7 +39,7 @@ void RGWLoadGenProcess::run()
 
   vector<string> buckets(num_buckets);
 
-  std::atomic<long int> failed = { 0 };
+  std::atomic<bool> failed = { false };
 
   for (i = 0; i < num_buckets; i++) {
     buckets[i] = "/loadgen";
@@ -104,7 +104,7 @@ done:
 
 void RGWLoadGenProcess::gen_request(const string& method,
                                    const string& resource,
-                                   int content_length, std::atomic<long int>* fail_flag)
+                                   int content_length, std::atomic<bool>* fail_flag)
 {
   RGWLoadGenRequest* req =
     new RGWLoadGenRequest(store->get_new_req_id(), method, resource,