2019-04-29 17:49:26 +00:00
|
|
|
From 94db732128bdeec330f7353f2514940bc1abd97b Mon Sep 17 00:00:00 2001
|
2019-02-27 23:59:41 +00:00
|
|
|
From: Boris Ranto <branto@redhat.com>
|
|
|
|
Date: Thu, 28 Feb 2019 00:58:12 +0100
|
|
|
|
Subject: [PATCH] s390x: A compile hack
|
|
|
|
|
|
|
|
Signed-off-by: Boris Ranto <branto@redhat.com>
|
|
|
|
---
|
2019-02-28 11:58:29 +00:00
|
|
|
src/rgw/rgw_dmclock_async_scheduler.cc | 2 ++
|
2019-04-29 17:49:26 +00:00
|
|
|
src/test/rgw/test_rgw_dmclock_scheduler.cc | 7 ++++---
|
|
|
|
2 files changed, 6 insertions(+), 3 deletions(-)
|
2019-02-27 23:59:41 +00:00
|
|
|
|
|
|
|
diff --git a/src/rgw/rgw_dmclock_async_scheduler.cc b/src/rgw/rgw_dmclock_async_scheduler.cc
|
|
|
|
index 18ba5a5e32..08657cf2b5 100644
|
|
|
|
--- a/src/rgw/rgw_dmclock_async_scheduler.cc
|
|
|
|
+++ b/src/rgw/rgw_dmclock_async_scheduler.cc
|
|
|
|
@@ -41,6 +41,7 @@ int AsyncScheduler::schedule_request_impl(const client_id& client,
|
|
|
|
const Time& time, const Cost& cost,
|
|
|
|
optional_yield yield_ctx)
|
|
|
|
{
|
|
|
|
+#ifdef HAVE_BOOST_CONTEXT
|
|
|
|
ceph_assert(yield_ctx);
|
|
|
|
|
|
|
|
auto &yield = yield_ctx.get_yield_context();
|
|
|
|
@@ -53,6 +54,7 @@ int AsyncScheduler::schedule_request_impl(const client_id& client,
|
|
|
|
else
|
|
|
|
return -ec.value();
|
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
2019-02-28 11:58:29 +00:00
|
|
|
diff --git a/src/test/rgw/test_rgw_dmclock_scheduler.cc b/src/test/rgw/test_rgw_dmclock_scheduler.cc
|
2019-04-29 17:49:26 +00:00
|
|
|
index 7d2ef9b328..e09f727972 100644
|
2019-02-28 11:58:29 +00:00
|
|
|
--- a/src/test/rgw/test_rgw_dmclock_scheduler.cc
|
|
|
|
+++ b/src/test/rgw/test_rgw_dmclock_scheduler.cc
|
|
|
|
@@ -14,6 +14,8 @@
|
|
|
|
|
|
|
|
//#define BOOST_ASIO_ENABLE_HANDLER_TRACKING
|
|
|
|
|
|
|
|
+#ifdef HAVE_BOOST_CONTEXT
|
|
|
|
+
|
|
|
|
#include "rgw/rgw_dmclock_sync_scheduler.h"
|
|
|
|
#include "rgw/rgw_dmclock_async_scheduler.h"
|
|
|
|
|
2019-04-29 17:49:26 +00:00
|
|
|
@@ -76,7 +78,6 @@ TEST(Queue, SyncRequest)
|
|
|
|
EXPECT_EQ(0u, counters(client_id::auth)->get(queue_counters::l_cancel));
|
2019-02-28 11:58:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
-#ifdef HAVE_BOOST_CONTEXT
|
2019-04-29 17:49:26 +00:00
|
|
|
TEST(Queue, RateLimit)
|
2019-02-28 11:58:29 +00:00
|
|
|
{
|
|
|
|
boost::asio::io_context context;
|
2019-04-29 17:49:26 +00:00
|
|
|
@@ -426,6 +427,6 @@ TEST(Queue, SpawnAsyncRequest)
|
2019-02-28 11:58:29 +00:00
|
|
|
EXPECT_TRUE(context.stopped());
|
|
|
|
}
|
|
|
|
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
} // namespace rgw::dmclock
|
|
|
|
+
|
|
|
|
+#endif
|
2019-02-27 23:59:41 +00:00
|
|
|
--
|
|
|
|
2.20.1
|
|
|
|
|