]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd/rwl: fix the config issue 36624/head
authorlixiaoy1 <xiaoyan.li@intel.com>
Fri, 14 Aug 2020 11:09:57 +0000 (07:09 -0400)
committerlixiaoy1 <xiaoyan.li@intel.com>
Fri, 14 Aug 2020 11:09:57 +0000 (07:09 -0400)
Include acconfig.h to the librbd/cache/Util.h.

Signed-off-by: Li, Xiaoyan <xiaoyan.li@intel.com>
src/librbd/cache/Utils.h

index 99752529072ea43036cc92a4c95b0e7661196acb..e69b09b3aaefe80c013ab0b5e42447676283149e 100644 (file)
@@ -4,6 +4,8 @@
 #ifndef CEPH_LIBRBD_CACHE_UTILS_H
 #define CEPH_LIBRBD_CACHE_UTILS_H
 
+#include "acconfig.h"
+
 namespace librbd {
 
 namespace cache {
@@ -15,7 +17,7 @@ bool is_rwl_enabled(T& image_ctx) {
   return image_ctx.config.template get_val<bool>("rbd_rwl_enabled");
 #else
   return false;
-#endif
+#endif // WITH_RBD_RWL
 }
 
 } // namespace util