]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: Do not use non-posix aio_init 42262/head
authorWillem Jan Withagen <wjw@digiware.nl>
Thu, 22 Jul 2021 11:33:42 +0000 (13:33 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Thu, 22 Jul 2021 11:33:42 +0000 (13:33 +0200)
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/rgw/rgw_d3n_datacache.cc

index e2ad497dae977029908bedcdfafd57754c650d65..b3eefa40bf3273045cb7d97da280d92798224186 100644 (file)
@@ -97,12 +97,14 @@ void D3nDataCache::init(CephContext *_cct) {
   if (conf_eviction_policy == "random")
     eviction_policy = _eviction_policy::RANDOM;
 
+#if defined(HAVE_LIBAIO)
   // libaio setup
   struct aioinit ainit{0};
-  ainit.aio_threads = cct->_conf.get_val<int64_t>("rgw_d3n_libaio_aio_threads");;
+  ainit.aio_threads = cct->_conf.get_val<int64_t>("rgw_d3n_libaio_aio_threads");
   ainit.aio_num = cct->_conf.get_val<int64_t>("rgw_d3n_libaio_aio_num");
   ainit.aio_idle_time = 120;
   aio_init(&ainit);
+#endif
 }
 
 int D3nDataCache::d3n_io_write(bufferlist& bl, unsigned int len, std::string oid)