]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: include asio strand headers in librbd.cc 54839/head
authorCasey Bodley <cbodley@redhat.com>
Fri, 8 Dec 2023 16:24:54 +0000 (11:24 -0500)
committerCasey Bodley <cbodley@redhat.com>
Fri, 8 Dec 2023 16:24:57 +0000 (11:24 -0500)
Fixes: https://tracker.ceph.com/issues/63682
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/librbd/librbd.cc

index 1272d95dd7e5c0f6dfffa7a62832ef0ad3bba6a2..132a0084a9f66e8af6759080593f855e8fa24e44 100644 (file)
 
 #include <errno.h>
 
+// these strand headers declare static variables that need to be shared between
+// librbd.so and librados.so. referencing them here causes librbd.so to link
+// their symbols as 'global unique'. see https://tracker.ceph.com/issues/63682
+#include <boost/asio/strand.hpp>
+#include <boost/asio/io_context_strand.hpp>
+
 #include "common/deleter.h"
 #include "common/dout.h"
 #include "common/errno.h"