]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test: add missing includes
authorMax Kellermann <max.kellermann@ionos.com>
Mon, 14 Oct 2024 14:29:57 +0000 (16:29 +0200)
committerMax Kellermann <max.kellermann@ionos.com>
Tue, 10 Dec 2024 11:00:22 +0000 (12:00 +0100)
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
60 files changed:
src/test/bench_log.cc
src/test/client/TestClient.h
src/test/cls_rgw/test_cls_rgw_stats.cc
src/test/common/test_async_shared_mutex.cc
src/test/crimson/test_messenger_thrash.cc
src/test/crimson/test_monc.cc
src/test/fio/fio_ceph_objectstore.cc
src/test/immutable_object_cache/test_DomainSocket.cc
src/test/librados/aio_cxx.cc
src/test/librados/misc.cc
src/test/librados/misc_cxx.cc
src/test/librados/test_common.cc
src/test/librados_test_stub/TestMemIoCtxImpl.cc
src/test/librados_test_stub/TestMemRadosClient.cc
src/test/librbd/fsx.cc
src/test/librbd/io/test_mock_ImageRequest.cc
src/test/librbd/journal/test_Replay.cc
src/test/librbd/mock/MockObjectMap.h
src/test/librbd/object_map/test_mock_InvalidateRequest.cc
src/test/librbd/object_map/test_mock_SnapshotCreateRequest.cc
src/test/librbd/object_map/test_mock_SnapshotRemoveRequest.cc
src/test/librbd/object_map/test_mock_SnapshotRollbackRequest.cc
src/test/librbd/object_map/test_mock_UpdateRequest.cc
src/test/librbd/operation/test_mock_DisableFeaturesRequest.cc
src/test/librbd/operation/test_mock_EnableFeaturesRequest.cc
src/test/librbd/operation/test_mock_Request.cc
src/test/librbd/operation/test_mock_ResizeRequest.cc
src/test/librbd/operation/test_mock_SnapshotCreateRequest.cc
src/test/librbd/operation/test_mock_SnapshotProtectRequest.cc
src/test/librbd/operation/test_mock_SnapshotRemoveRequest.cc
src/test/librbd/operation/test_mock_SnapshotRollbackRequest.cc
src/test/librbd/operation/test_mock_SnapshotUnprotectRequest.cc
src/test/librbd/operation/test_mock_TrimRequest.cc
src/test/librbd/test_DeepCopy.cc
src/test/librbd/test_ImageWatcher.cc
src/test/librbd/test_Migration.cc
src/test/librbd/test_ObjectMap.cc
src/test/librbd/test_fixture.cc
src/test/librbd/test_internal.cc
src/test/librbd/test_mock_ExclusiveLock.cc
src/test/librbd/test_mock_Journal.cc
src/test/librbd/test_mock_ObjectMap.cc
src/test/mon/PGMap.cc
src/test/neorados/read_operations.cc
src/test/objectstore/Allocator_bench.cc
src/test/objectstore/Allocator_test.cc
src/test/objectstore/Fragmentation_simulator.cc
src/test/objectstore/ObjectStoreImitator.cc
src/test/objectstore/store_test.cc
src/test/objectstore/test_memstore_clone.cc
src/test/objectstore_bench.cc
src/test/osd/ceph_test_rados_io_sequence.cc
src/test/osd/ceph_test_rados_io_sequence.h
src/test/osd/test_ec_transaction.cc
src/test/osdc/MemWriteback.cc
src/test/rbd_mirror/test_ImageReplayer.cc
src/test/rbd_mirror/test_ImageSync.cc
src/test/rgw/test_log_backing.cc
src/test/signals.cc
src/test/test_denc.cc

index 9e7c02afc41203e4969cd72b2ccfe93633bfb42c..2408c5dffb6e566f11c6415bbd075301763ded13 100644 (file)
@@ -10,6 +10,7 @@
 #include "common/config.h"
 #include "common/ceph_argparse.h"
 #include "global/global_init.h"
+#include "log/Log.h"
 
 #define dout_context g_ceph_context
 
index bf3b274af603ebdfdd4d666f0fb7bcef155a4571..d4f3364ad5eedd7b773834b0aed52f3370063b12 100644 (file)
@@ -20,6 +20,7 @@
 #include "msg/Messenger.h"
 #include "mon/MonClient.h"
 #include "osdc/ObjectCacher.h"
+#include "osdc/Objecter.h"
 #include "client/MetaRequest.h"
 #include "client/Client.h"
 #include "messages/MClientReclaim.h"
index 80fa88fabf53156fada661cc62c605be91da0826..90bf4bd25b6ee63616662ee238ac73bbc9b190c8 100644 (file)
@@ -10,6 +10,7 @@
 #include "common/dout.h"
 #include "common/errno.h"
 #include "common/random_string.h"
+#include "include/random.h" // for ceph::util::generate_random_number()
 #include "global/global_context.h"
 #include "test/librados/test_cxx.h"
 
index ed3a55a70edc93ba572d8050f8980c6b3570f90d..ebd9b937ac8696852a2225402e5049dfca06ba33 100644 (file)
@@ -15,6 +15,7 @@
 #include "common/async/shared_mutex.h"
 #include <future>
 #include <optional>
+#include <shared_mutex> // for std::shared_lock
 #include <boost/asio/bind_executor.hpp>
 #include <boost/asio/io_context.hpp>
 #include <gtest/gtest.h>
index 72e3f221755b2d454d83ff341306f62942b73448..246613f4446cec11d6c1b3221202b3bb46fbc302 100644 (file)
@@ -22,6 +22,8 @@
 #include "crimson/net/Messenger.h"
 #include "test/crimson/ctest_utils.h"
 
+#include <boost/random/uniform_int.hpp>
+
 using namespace std::chrono_literals;
 namespace bpo = boost::program_options;
 using crimson::common::local_conf;
index c30098fe87f98051a9f0c87489fc0e89f5bdb441..7152110d6467eb40d4d2aa5a045bb3f695a8ac12 100644 (file)
@@ -2,6 +2,7 @@
 #include "common/ceph_argparse.h"
 #include "crimson/common/auth_handler.h"
 #include "crimson/common/config_proxy.h"
+#include "crimson/common/perf_counters_collection.h"
 #include "crimson/mon/MonClient.h"
 #include "crimson/net/Connection.h"
 #include "crimson/net/Messenger.h"
index ade043f0cd166bad3f7ed02b42c5ae90be516e97..f5fa9ceca737c4d4ae25724bd96bc18721b335d0 100644 (file)
@@ -15,6 +15,7 @@
 
 #include "os/ObjectStore.h"
 #include "global/global_init.h"
+#include "common/debug.h"
 #include "common/errno.h"
 #include "include/intarith.h"
 #include "include/stringify.h"
 #include "include/ceph_assert.h" // fio.h clobbers our assert.h
 #include <algorithm>
 
+#if defined(WITH_SEASTAR) && !defined(WITH_ALIEN)
+#include "crimson/common/perf_counters_collection.h"
+#else
+#include "common/perf_counters_collection.h"
+#endif
+
 #define dout_context g_ceph_context
 #define dout_subsys ceph_subsys_
 
index 31d1b9adc2014419ce216344232ed68b8f9699a9..98ef1722071c07ee7fc9875f6d29d0393bad0bf7 100644 (file)
@@ -6,6 +6,7 @@
 
 #include "gtest/gtest.h"
 #include "include/Context.h"
+#include "include/unordered_set.h"
 #include "global/global_init.h"
 #include "global/global_context.h"
 
@@ -13,6 +14,7 @@
 #include "tools/immutable_object_cache/CacheClient.h"
 #include "tools/immutable_object_cache/CacheServer.h"
 
+using ceph::unordered_set;
 using namespace ceph::immutable_obj_cache;
 
 class TestCommunication :public ::testing::Test {
index 92326e4dbc07d20de5374f0f96dcf098781d3da6..a70af050d704c9e900f5ff785a72fcc188d13943 100644 (file)
@@ -1,5 +1,6 @@
 #include <errno.h>
 #include <fcntl.h>
+#include <deque>
 #include <sstream>
 #include <string>
 #include <utility>
index 6425d3aac022b5830147469f718a730a22c6ada6..ced9fb5f2eeaac8640d193f1e129a1c8589fda5f 100644 (file)
@@ -12,6 +12,8 @@
 #include "include/scope_guard.h"
 #include "include/stringify.h"
 #include "common/Checksummer.h"
+#include "common/Clock.h" // for ceph_clock_now()
+#include "common/config_proxy.h" // for class ConfigProxy
 #include "global/global_context.h"
 #include "test/librados/test.h"
 #include "test/librados/TestCase.h"
index 1f8c212beafed81d5a76e8cce6ca453c82b12a82..46bda84a638d4f95cdaecf155bb1e2f161d8ec8e 100644 (file)
@@ -16,6 +16,7 @@
 #include "include/scope_guard.h"
 #include "include/stringify.h"
 #include "common/Checksummer.h"
+#include "common/config_proxy.h" // for class ConfigProxy
 #include "mds/mdstypes.h"
 #include "global/global_context.h"
 #include "test/librados/testcase_cxx.h"
index 647a9ff48582c64654721854183848cd433f3aa8..e6e6c21bdf1dd2b48df11daae62d2292cfa21d37 100644 (file)
@@ -2,6 +2,7 @@
 // vim: ts=8 sw=2 smarttab
 
 #include "common/Formatter.h"
+#include "include/ceph_assert.h"
 #include "include/stringify.h"
 #include "json_spirit/json_spirit.h"
 #include "test_common.h"
index 248fd5b8febccf6ed5c3eed14584c836669cd3fd..363bc9b62fcfad51a36ac2ca555e2bdba3a278e7 100644 (file)
@@ -6,6 +6,7 @@
 #include "common/Clock.h"
 #include "include/err.h"
 #include <functional>
+#include <shared_mutex> // for std::shared_lock
 #include <boost/algorithm/string/predicate.hpp>
 #include <errno.h>
 #include <include/compat.h>
index 37d45327c3007195174d00e33c2b03c56fc04828..09cd20c465e6af3b93c724346e8761d14d01e6da 100644 (file)
@@ -5,6 +5,7 @@
 #include "test/librados_test_stub/TestMemCluster.h"
 #include "test/librados_test_stub/TestMemIoCtxImpl.h"
 #include <errno.h>
+#include <shared_mutex> // for std::shared_lock
 #include <sstream>
 
 namespace librados {
index 4ba00ad15558d2726bbd483b687feed86f358227..27029ed6330a8a0a127bb31f5a25085cd88cec4c 100644 (file)
@@ -60,6 +60,7 @@
 #include "include/rados/librados.hpp"
 #include "include/rbd/librbd.h"
 #include "include/rbd/librbd.hpp"
+#include "include/rbd_types.h" // for RBD_DATA_PREFIX
 #include "common/Cond.h"
 #include "common/SubProcess.h"
 #include "common/safe_io.h"
index 6ee67fe5f1c3ed9f4057c64e0a459bb33c1efb71..b68009304d55d3c8ab2192c051ba6dd1bae469af 100644 (file)
@@ -10,6 +10,8 @@
 #include "librbd/io/ObjectDispatchSpec.h"
 #include "librbd/io/Utils.h"
 
+#include <shared_mutex> // for std::shared_lock
+
 namespace librbd {
 namespace {
 
index 9b4580e6472f4c012f5b4b3780f185c483ff6067..1fb3f6225adc72372ebb947297e01d70fabe65a8 100644 (file)
@@ -22,6 +22,8 @@
 #include "librbd/io/ReadResult.h"
 #include "librbd/journal/Types.h"
 
+#include <shared_mutex> // for std::shared_lock
+
 void register_test_journal_replay() {
 }
 
index 5e3235cf023d106af7a0d14c4a29df0025b84473..427d064e15059520f35b4d620f42783fdf1e3809 100644 (file)
@@ -8,6 +8,8 @@
 #include "librbd/Utils.h"
 #include "gmock/gmock.h"
 
+#include <boost/optional/optional_io.hpp>
+
 namespace librbd {
 
 struct MockObjectMap {
index 5ea40c03d69511f01cb2157768322f663090f035..eabce9cca5ccd398e8339eae691f7081d8a9753f 100644 (file)
@@ -10,6 +10,8 @@
 #include "gmock/gmock.h"
 #include "gtest/gtest.h"
 
+#include <shared_mutex> // for std::shared_lock
+
 namespace librbd {
 namespace object_map {
 
index 7f77aaf839f250a04d37c5f9973bbada4fac3fea..0c78d9fdaf5d5b5e91335317c9a68f73e7b374fe 100644 (file)
@@ -12,6 +12,8 @@
 #include "gmock/gmock.h"
 #include "gtest/gtest.h"
 
+#include <shared_mutex> // for std::shared_lock
+
 namespace librbd {
 namespace object_map {
 
index 20318743d30dcc64337eff0aee9e4299302d8382..8d3cb2a2b81f949c6bc8c4176a1f707efb5f1878 100644 (file)
@@ -12,6 +12,8 @@
 #include "gmock/gmock.h"
 #include "gtest/gtest.h"
 
+#include <shared_mutex> // for std::shared_lock
+
 namespace librbd {
 namespace object_map {
 
index 7b89a0996c11d7059d990ca476cf87b68323eb07..bfae75ce68076bdf2b8ed02a4956039635922972 100644 (file)
@@ -11,6 +11,8 @@
 #include "gmock/gmock.h"
 #include "gtest/gtest.h"
 
+#include <shared_mutex> // for std::shared_lock
+
 namespace librbd {
 namespace object_map {
 
index c240dec00046e5249be707476a2b6159ae3a4f9d..5c4934d4ad59696859d9e15aa43a2e4e14b97d0f 100644 (file)
@@ -14,6 +14,8 @@
 #include "gmock/gmock.h"
 #include "gtest/gtest.h"
 
+#include <shared_mutex> // for std::shared_lock
+
 namespace librbd {
 namespace object_map {
 
index 171ac41a71a8f88b38c01a7f2feb4b4ea3fceaef..db6b21d024d43026273adecebe42b5e065ecd735 100644 (file)
@@ -20,6 +20,8 @@
 #include "gmock/gmock.h"
 #include "gtest/gtest.h"
 
+#include <shared_mutex> // for std::shared_lock
+
 namespace librbd {
 
 namespace {
index b7bf7d1781d3bedbab91857022598dfda23da666..615e471d114814ac55d8529a651f37df4fd58c42 100644 (file)
@@ -19,6 +19,8 @@
 #include "gmock/gmock.h"
 #include "gtest/gtest.h"
 
+#include <shared_mutex> // for std::shared_lock
+
 namespace librbd {
 
 namespace {
index 5c5e7a37535d2f8bf9ccfcf41d6495793841216d..f23a3386c7f6f6026ee6d50bb478076622012d96 100644 (file)
@@ -8,6 +8,8 @@
 #include "librbd/AsyncRequest.h"
 #include "librbd/operation/Request.h"
 
+#include <shared_mutex> // for std::shared_lock
+
 namespace librbd {
 namespace {
 
index 552ba5c97560218e93f51bf3bcc6a0c2ae948e08..b80ef20f0a49cd3a4db714251ae8f3006d3efd3d 100644 (file)
@@ -14,6 +14,8 @@
 #include "gmock/gmock.h"
 #include "gtest/gtest.h"
 
+#include <shared_mutex> // for std::shared_lock
+
 namespace librbd {
 
 namespace util {
index 218fc6b0417035ac821d268aec20983d6f4e9254..2756a616090e3704fda6df946d7994d3d3614d87 100644 (file)
@@ -13,6 +13,8 @@
 #include "gmock/gmock.h"
 #include "gtest/gtest.h"
 
+#include <shared_mutex> // for std::shared_lock
+
 namespace librbd {
 namespace mirror {
 namespace snapshot {
index aa8c1e78dc7e8de3d938b0eac5cc5c035b5908d3..bd488fc511d4a54064a3004e1baa81510d57183c 100644 (file)
@@ -15,6 +15,8 @@
 // template definitions
 #include "librbd/operation/SnapshotProtectRequest.cc"
 
+#include <shared_mutex> // for std::shared_lock
+
 namespace librbd {
 namespace operation {
 
index 4469cb80ddec948758d7c3ca64fafc56276e6687..e55c6e8687cd92d4bb6ce60cce0ffe465ccd39df 100644 (file)
@@ -15,6 +15,8 @@
 #include "gmock/gmock.h"
 #include "gtest/gtest.h"
 
+#include <shared_mutex> // for std::shared_lock
+
 namespace librbd {
 namespace image {
 
index 65eac7a6d6c3ef850b45109133a6216bd663e906..d11378ec4deca1eec67db3ba4bf333323b519c35 100644 (file)
@@ -14,6 +14,8 @@
 #include "gmock/gmock.h"
 #include "gtest/gtest.h"
 
+#include <shared_mutex> // for std::shared_lock
+
 namespace librbd {
 
 namespace {
index 26b1be2066a28f826021e2ad5a16e7b8e7a3915d..9b48e0c000920eb2b8b4f2c442b3043f9c6888c5 100644 (file)
@@ -17,6 +17,8 @@
 // template definitions
 #include "librbd/operation/SnapshotUnprotectRequest.cc"
 
+#include <shared_mutex> // for std::shared_lock
+
 namespace librbd {
 namespace operation {
 
index 1771e741377e963104063db721a86d61de6483de..aebd2117daeeaba9110349701c33a2011096adce 100644 (file)
@@ -16,6 +16,8 @@
 #include "gtest/gtest.h"
 #include <boost/variant.hpp>
 
+#include <shared_mutex> // for std::shared_lock
+
 namespace librbd {
 namespace {
 
index fcce0c642e2a4541a0eefcef7946dc66a68e2cb6..457f958e68a22e05aed741dde6e6c080188e738d 100644 (file)
@@ -11,6 +11,8 @@
 #include "librbd/io/ReadResult.h"
 #include "test/librados/crimson_utils.h"
 
+#include <shared_mutex> // for std::shared_lock
+
 void register_test_deep_copy() {
 }
 
index 780ce7c0e3a2100a6fef892855cf9b81b95557e7..1adc5b4149dac7afdf5a09f01e479eb0097ecbed 100644 (file)
@@ -25,6 +25,7 @@
 #include <iostream>
 #include <map>
 #include <set>
+#include <shared_mutex> // for std::shared_lock
 #include <sstream>
 #include <vector>
 
index 8c0f4b61b21914a81ed0ae0b295ce3b5c4cc7c21..b017fbba7e69e9a6c49d282259711c870d6128a7 100644 (file)
@@ -20,6 +20,8 @@
 #include "common/Cond.h"
 #include <boost/scope_exit.hpp>
 
+#include <shared_mutex> // for std::shared_lock
+
 void register_test_migration() {
 }
 
index 32d223a1d27378fdc66b67e13cce923e94c3cae6..15d5db37cde76dad838fdc809a8b61d40caef6d4 100644 (file)
@@ -17,6 +17,8 @@
 #include <boost/accumulators/statistics/stats.hpp>
 #include <boost/accumulators/statistics/rolling_sum.hpp>
 
+#include <shared_mutex> // for std::shared_lock
+
 void register_test_object_map() {
 }
 
index 9ddebec482ef6722fb683fcb1ecfc6497910a432..d2a3d469ece431a691905d1f5bbb9f4a34ce1a2b 100644 (file)
@@ -17,6 +17,7 @@
 #include "test/librados/test.h"
 #include "test/librados/test_cxx.h"
 #include <iostream>
+#include <shared_mutex> // for std::shared_lock
 #include <sstream>
 #include <stdlib.h>
 
index 37930cb26bbc78ba212d1b44c740f36e381282a7..008fdcfa7bec9f095059a96f8ce8060f92b0bdde 100644 (file)
@@ -27,6 +27,7 @@
 #include <boost/scope_exit.hpp>
 #include <boost/algorithm/string/predicate.hpp>
 #include <boost/assign/list_of.hpp>
+#include <shared_mutex> // for std::shared_lock
 #include <utility>
 #include <vector>
 #include "test/librados/crimson_utils.h"
index 6feb54ec66146c1f5a910a36e3bc4b9fd19e73d5..259adab9d0bdbedcd2e7f8f25bd299110fffbaca 100644 (file)
@@ -15,6 +15,7 @@
 #include "gmock/gmock.h"
 #include "gtest/gtest.h"
 #include <list>
+#include <shared_mutex> // for std::shared_lock
 #include <boost/scope_exit.hpp>
 
 namespace librbd {
index 589695c50b39d255c8d2ebee1cd24df26f359c24..d39f9c75c02922d61912eec494500fe71732bc38 100644 (file)
@@ -9,6 +9,7 @@
 #include "test/librbd/mock/io/MockObjectDispatch.h"
 #include "common/Cond.h"
 #include "common/ceph_mutex.h"
+#include "common/debug.h"
 #include "common/WorkQueue.h"
 #include "cls/journal/cls_journal_types.h"
 #include "journal/Journaler.h"
@@ -28,6 +29,7 @@
 #include "gtest/gtest.h"
 #include <functional>
 #include <list>
+#include <shared_mutex> // for std::shared_lock
 #include <boost/scope_exit.hpp>
 
 #define dout_context g_ceph_context
index 39e29172c5854515cdedf12e472725b0b73757e1..e2085d093cb90224366dcd9c8a9ccb9ce09de6f4 100644 (file)
@@ -10,6 +10,8 @@
 #include "librbd/object_map/UpdateRequest.h"
 #include <boost/scope_exit.hpp>
 
+#include <shared_mutex> // for std::shared_lock
+
 namespace librbd {
 
 namespace {
index 43d6de4c78341023244b72e034fbe7d9b05ee08a..c8f167a45942b513ee53f89a9d3f77e6a2dcb2c2 100644 (file)
@@ -14,6 +14,7 @@
 #include "mon/PGMap.h"
 #include "gtest/gtest.h"
 
+#include "common/TextTable.h"
 #include "include/stringify.h"
 
 using namespace std;
index adf5f34ae5e595226ff4964f8478e2206790edfb..d5df84585b8e0ad148e048f28e4697ae9db66991 100644 (file)
@@ -15,6 +15,7 @@
 #include <initializer_list>
 #include <memory>
 #include <string_view>
+#include <unordered_set>
 #include <utility>
 
 #include <boost/asio/use_awaitable.hpp>
@@ -27,6 +28,7 @@
 #include <xxHash/xxhash.h>
 
 #include "include/neorados/RADOS.hpp"
+#include "include/rbd/features.h" // for RBD_FEATURES_ALL
 
 #include "osd/error_code.h"
 
index 1758d8c338e00c9d96e012174ccf4f3df68f617a..0c577f4fe1b3fa7fa531fe83e114cde4f41bfb6f 100644 (file)
@@ -14,6 +14,7 @@
 #include "include/Context.h"
 #include "os/bluestore/Allocator.h"
 
+#include <boost/random/mersenne_twister.hpp>
 #include <boost/random/uniform_int.hpp>
 typedef boost::mt11213b gen_type;
 
index 47d29e8590a390c0d16e2c49ca3df08b6a193a95..1a66303add32d7d8f3dbdd022c4447604d982493 100644 (file)
@@ -5,6 +5,7 @@
  * Author: Ramesh Chander, Ramesh.Chander@sandisk.com
  */
 #include <iostream>
+#include <boost/random/mersenne_twister.hpp> // for boost::mt11213b
 #include <boost/scoped_ptr.hpp>
 #include <gtest/gtest.h>
 
index 02a2991cd0ce66f787663a97409cbf4d1f4496d2..1dbaaa8e58cc4df8f2b4405770fbc2e0794f4ae5 100644 (file)
@@ -7,6 +7,7 @@
 #include "common/ceph_argparse.h"
 #include "common/ceph_mutex.h"
 #include "common/common_init.h"
+#include "common/debug.h"
 #include "common/hobject.h"
 
 #include "global/global_context.h"
@@ -18,6 +19,7 @@
 #include "os/ObjectStore.h"
 #include "test/objectstore/ObjectStoreImitator.h"
 #include <fstream>
+#include <boost/random/mersenne_twister.hpp> // for boost::mt11213b
 #include <boost/random/uniform_int.hpp>
 #include <fmt/core.h>
 #include <mutex>
index 6b4e7d9eaa8a96a865c188fc92e0ef226718e126..14cc20c1622679a75d5d3a2910885d7d0650da34 100644 (file)
@@ -6,6 +6,7 @@
  */
 #include "test/objectstore/ObjectStoreImitator.h"
 #include "common/Clock.h"
+#include "common/debug.h"
 #include "common/Finisher.h"
 #include "common/errno.h"
 #include "include/ceph_assert.h"
@@ -13,6 +14,7 @@
 #include "os/bluestore/bluestore_types.h"
 #include <algorithm>
 #include <cmath>
+#include <shared_mutex> // for std::shared_lock
 
 #define dout_context g_ceph_context
 #define dout_subsys ceph_subsys_test
index 38b62f3ea6da74808cd2b68e324d8b68f6fdd4d3..a75857e5e97d183accee08e5424b123388408fad 100644 (file)
@@ -39,6 +39,7 @@
 #include "global/global_init.h"
 #include "common/ceph_mutex.h"
 #include "common/Cond.h"
+#include "common/debug.h"
 #include "common/errno.h"
 #include "common/options.h" // for the size literals
 #include "common/pretty_binary.h"
index 507f74d22d2d86c2e7f829a2c0dbe9e8f5c4ac7a..b4ef66933e1c02f21944289e0b96ea33ed4ea029 100644 (file)
@@ -17,6 +17,7 @@
 #include "os/ObjectStore.h"
 #include <gtest/gtest.h>
 #include "include/ceph_assert.h"
+#include "common/debug.h"
 #include "common/errno.h"
 #include "store_test_fixture.h"
 
index 65a2987d08d80db5a53969dca1db602737ac41f5..ef5392efb458ad7c5b2e07a21e465a6cc3c4c841 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "global/global_init.h"
 
+#include "common/debug.h"
 #include "common/strtol.h"
 #include "common/ceph_argparse.h"
 
index 5e340c5c9c5bd771ae93748fd151c621e833446b..4a768a016e28c8641025b58080e9643ba7278fab 100644 (file)
@@ -16,6 +16,7 @@
 #include "common/debug.h"
 #include "common/dout.h"
 #include "common/split.h"
+#include "common/strtol.h" // for strict_iecstrtoll()
 
 #include "common/io_exerciser/DataGenerator.h"
 #include "common/io_exerciser/Model.h"
index 4f77c94027458dcdf416caa6e6c7bf7cd13b9f8a..4e21d02570004c44e9a6ee3b5b164ca2a4f3a554 100644 (file)
@@ -11,6 +11,7 @@
 
 #include "librados/librados_asio.h"
 
+#include <boost/asio/io_context.hpp>
 #include <boost/program_options.hpp>
 
 /* Overview
@@ -340,4 +341,4 @@ namespace ceph
       void list_sequence();
     };
   }
-}
\ No newline at end of file
+}
index c17df4802ede9b8fb0a2a11f132c73ad3e39a053..64397ce88bf248d45c8068b06931337d534c4c1c 100644 (file)
@@ -15,6 +15,7 @@
 #include <gtest/gtest.h>
 #include "osd/PGTransaction.h"
 #include "osd/ECTransaction.h"
+#include "common/debug.h"
 
 #include "test/unit.cc"
 
index 4cb11291a988d94610b931712d813f84283804c5..bcc828e064b0c20ddebd93b3ffaee4d0a53d220e 100644 (file)
@@ -1,6 +1,8 @@
 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
 // vim: ts=8 sw=2 smarttab
 
+#include "MemWriteback.h"
+
 #include <errno.h>
 #include <time.h>
 
@@ -11,8 +13,7 @@
 #include "common/ceph_mutex.h"
 #include "include/ceph_assert.h"
 #include "common/ceph_time.h"
-
-#include "MemWriteback.h"
+#include "common/snap_types.h" // for class SnapContext
 
 #define dout_context g_ceph_context
 #define dout_subsys ceph_subsys_objectcacher
index abe163cfd6925c1ea39cc4ba972d8f83e2969418..360c85a76b602ca38b0eeb72c9497be9076a4c34 100644 (file)
@@ -47,6 +47,8 @@
 #include "test/librados/test_cxx.h"
 #include "gtest/gtest.h"
 
+#include <shared_mutex> // for std::shared_lock
+
 void register_test_rbd_mirror() {
 }
 
index 93349ca11639d62cee80a54631923c7a4eacfbc1..9418496bce2d44cd646a8f3375377b92659b736e 100644 (file)
@@ -24,6 +24,8 @@
 #include "tools/rbd_mirror/Throttler.h"
 #include "tools/rbd_mirror/image_replayer/journal/StateBuilder.h"
 
+#include <shared_mutex> // for std::shared_lock
+
 void register_test_image_sync() {
 }
 
index e4109d535d10cc7693b5dafd288b78c39ea750a4..a6de690af0fe06d2b01f6a3f84ed8cd60aaf7133 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <fmt/format.h>
 
+#include "common/Clock.h" // for ceph_clock_now()
 #include "include/types.h"
 #include "include/rados/librados.hpp"
 
index dc24900a8c4ede528449ecc736aae99e9c6aa22b..513b176b780108ad662198b795ee70f7633a980c 100644 (file)
@@ -3,6 +3,7 @@
 #include "global/signal_handler.h"
 #include "common/debug.h"
 #include "include/coredumpctl.h"
+#include "log/Log.h"
 
 #include "gtest/gtest.h"
 
index c9144bd05bf0605107beaaa53767d060cf877809..db742b5e2cf08f3a244edf077708ca41a51e6687 100644 (file)
 
 #include "include/denc.h"
 
+#include <boost/container/flat_map.hpp>
+#include <boost/container/flat_set.hpp>
+#include <boost/optional.hpp>
+
 using namespace std;
 
 // test helpers