File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -803,7 +803,7 @@ TEST_F(TestCls2PCQueue, MultiProducer)
803803 cls_2pc_queue_init (op, queue_name, max_size);
804804 ASSERT_EQ (0 , ioctx.operate (queue_name, &op));
805805
806- auto producer_count = max_producer_count;
806+ std::atomic< int > producer_count = max_producer_count;
807807
808808 std::vector<std::thread> producers (max_producer_count);
809809 for (auto & p : producers) {
@@ -925,9 +925,9 @@ TEST_F(TestCls2PCQueue, MultiProducerConsumer)
925925 cls_2pc_queue_init (op, queue_name, max_size);
926926 ASSERT_EQ (0 , ioctx.operate (queue_name, &op));
927927
928- auto producer_count = max_workers;
928+ std::atomic< int > producer_count = max_workers;
929929
930- auto retry_happened = false ;
930+ std::atomic< bool > retry_happened = false ;
931931
932932 std::vector<std::thread> producers (max_workers);
933933 for (auto & p : producers) {
You can’t perform that action at this time.
0 commit comments