add missing headers for new toolchain (#41)

These are necessary for compiling with Ubuntu 24.04 default toolchain/boost.
This commit is contained in:
胡玮文 2025-03-03 07:57:02 +08:00 committed by GitHub
parent cd564a239a
commit 309a258ac2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
12 changed files with 14 additions and 1 deletions

View File

@ -2,6 +2,7 @@
#include <boost/algorithm/string.hpp> #include <boost/algorithm/string.hpp>
#include <boost/core/ignore_unused.hpp> #include <boost/core/ignore_unused.hpp>
#include <boost/filesystem/string_file.hpp>
#include <common/utils/UtcTime.h> #include <common/utils/UtcTime.h>
#include <folly/experimental/coro/Collect.h> #include <folly/experimental/coro/Collect.h>
#include <folly/futures/Barrier.h> #include <folly/futures/Barrier.h>

View File

@ -1,6 +1,7 @@
#include "DumpChainTable.h" #include "DumpChainTable.h"
#include <folly/Conv.h> #include <folly/Conv.h>
#include <fstream>
#include "AdminEnv.h" #include "AdminEnv.h"
#include "client/cli/common/Dispatcher.h" #include "client/cli/common/Dispatcher.h"

View File

@ -1,6 +1,7 @@
#include "DumpChains.h" #include "DumpChains.h"
#include <folly/Conv.h> #include <folly/Conv.h>
#include <fstream>
#include "AdminEnv.h" #include "AdminEnv.h"
#include "client/cli/common/Dispatcher.h" #include "client/cli/common/Dispatcher.h"

View File

@ -1,6 +1,7 @@
#include "DumpChunkMeta.h" #include "DumpChunkMeta.h"
#include <folly/logging/xlog.h> #include <folly/logging/xlog.h>
#include <fstream>
#include <vector> #include <vector>
#include "AdminEnv.h" #include "AdminEnv.h"

View File

@ -8,6 +8,7 @@
#include <folly/experimental/coro/Invoke.h> #include <folly/experimental/coro/Invoke.h>
#include <folly/futures/Future.h> #include <folly/futures/Future.h>
#include <folly/logging/xlog.h> #include <folly/logging/xlog.h>
#include <fstream>
#include <memory> #include <memory>
#include <utility> #include <utility>
#include <vector> #include <vector>
@ -338,4 +339,4 @@ CoTryTask<void> registerDumpInodesHandler(Dispatcher &dispatcher) {
co_return co_await dispatcher.registerHandler(getParser, dumpInodes); co_return co_await dispatcher.registerHandler(getParser, dumpInodes);
} }
} // namespace hf3fs::client::cli } // namespace hf3fs::client::cli

View File

@ -1,6 +1,7 @@
#include "RenderConfig.h" #include "RenderConfig.h"
#include <folly/Conv.h> #include <folly/Conv.h>
#include <fstream>
#include "AdminEnv.h" #include "AdminEnv.h"
#include "client/cli/common/Dispatcher.h" #include "client/cli/common/Dispatcher.h"

View File

@ -1,5 +1,6 @@
#pragma once #pragma once
#include <cstdint>
#include <string_view> #include <string_view>
namespace hf3fs { namespace hf3fs {

View File

@ -12,6 +12,7 @@
#include <folly/Utility.h> #include <folly/Utility.h>
#include <folly/experimental/coro/BlockingWait.h> #include <folly/experimental/coro/BlockingWait.h>
#include <folly/logging/xlog.h> #include <folly/logging/xlog.h>
#include <fstream>
#include <fuse3/fuse_lowlevel.h> #include <fuse3/fuse_lowlevel.h>
#include <iostream> #include <iostream>
#include <linux/fs.h> #include <linux/fs.h>

View File

@ -2,6 +2,7 @@
#include <boost/filesystem/operations.hpp> #include <boost/filesystem/operations.hpp>
#include <folly/experimental/symbolizer/Symbolizer.h> #include <folly/experimental/symbolizer/Symbolizer.h>
#include <fstream>
#include <sys/stat.h> #include <sys/stat.h>
#include "common/monitor/Recorder.h" #include "common/monitor/Recorder.h"

View File

@ -1,5 +1,7 @@
#include "storage/worker/CheckWorker.h" #include "storage/worker/CheckWorker.h"
#include <fstream>
#include "common/monitor/Recorder.h" #include "common/monitor/Recorder.h"
#include "common/utils/Duration.h" #include "common/utils/Duration.h"
#include "common/utils/UtcTime.h" #include "common/utils/UtcTime.h"

View File

@ -1,6 +1,7 @@
#include "storage/worker/DumpWorker.h" #include "storage/worker/DumpWorker.h"
#include <gperftools/profiler.h> #include <gperftools/profiler.h>
#include <fstream>
#include <memory> #include <memory>
#include <sys/times.h> #include <sys/times.h>

View File

@ -12,6 +12,7 @@
#include <folly/logging/Logger.h> #include <folly/logging/Logger.h>
#include <folly/logging/LoggerDB.h> #include <folly/logging/LoggerDB.h>
#include <folly/logging/xlog.h> #include <folly/logging/xlog.h>
#include <fstream>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <string_view> #include <string_view>
#include <sys/stat.h> #include <sys/stat.h>