Skip to content

Commit 309a258

Browse files
authored
add missing headers for new toolchain (#41)
These are necessary for compiling with Ubuntu 24.04 default toolchain/boost.
1 parent cd564a2 commit 309a258

File tree

12 files changed

+14
-1
lines changed

12 files changed

+14
-1
lines changed

benchmarks/storage_bench/StorageBench.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#include <boost/algorithm/string.hpp>
44
#include <boost/core/ignore_unused.hpp>
5+
#include <boost/filesystem/string_file.hpp>
56
#include <common/utils/UtcTime.h>
67
#include <folly/experimental/coro/Collect.h>
78
#include <folly/futures/Barrier.h>

src/client/cli/admin/DumpChainTable.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "DumpChainTable.h"
22

33
#include <folly/Conv.h>
4+
#include <fstream>
45

56
#include "AdminEnv.h"
67
#include "client/cli/common/Dispatcher.h"

src/client/cli/admin/DumpChains.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "DumpChains.h"
22

33
#include <folly/Conv.h>
4+
#include <fstream>
45

56
#include "AdminEnv.h"
67
#include "client/cli/common/Dispatcher.h"

src/client/cli/admin/DumpChunkMeta.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "DumpChunkMeta.h"
22

33
#include <folly/logging/xlog.h>
4+
#include <fstream>
45
#include <vector>
56

67
#include "AdminEnv.h"

src/client/cli/admin/DumpInodes.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <folly/experimental/coro/Invoke.h>
99
#include <folly/futures/Future.h>
1010
#include <folly/logging/xlog.h>
11+
#include <fstream>
1112
#include <memory>
1213
#include <utility>
1314
#include <vector>
@@ -338,4 +339,4 @@ CoTryTask<void> registerDumpInodesHandler(Dispatcher &dispatcher) {
338339
co_return co_await dispatcher.registerHandler(getParser, dumpInodes);
339340
}
340341

341-
} // namespace hf3fs::client::cli
342+
} // namespace hf3fs::client::cli

src/client/cli/admin/RenderConfig.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "RenderConfig.h"
22

33
#include <folly/Conv.h>
4+
#include <fstream>
45

56
#include "AdminEnv.h"
67
#include "client/cli/common/Dispatcher.h"

src/common/utils/VersionInfo.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#pragma once
22

3+
#include <cstdint>
34
#include <string_view>
45

56
namespace hf3fs {

src/fuse/FuseOps.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <folly/Utility.h>
1313
#include <folly/experimental/coro/BlockingWait.h>
1414
#include <folly/logging/xlog.h>
15+
#include <fstream>
1516
#include <fuse3/fuse_lowlevel.h>
1617
#include <iostream>
1718
#include <linux/fs.h>

src/storage/store/StorageTarget.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#include <boost/filesystem/operations.hpp>
44
#include <folly/experimental/symbolizer/Symbolizer.h>
5+
#include <fstream>
56
#include <sys/stat.h>
67

78
#include "common/monitor/Recorder.h"

src/storage/worker/CheckWorker.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include "storage/worker/CheckWorker.h"
22

3+
#include <fstream>
4+
35
#include "common/monitor/Recorder.h"
46
#include "common/utils/Duration.h"
57
#include "common/utils/UtcTime.h"

src/storage/worker/DumpWorker.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "storage/worker/DumpWorker.h"
22

33
#include <gperftools/profiler.h>
4+
#include <fstream>
45
#include <memory>
56
#include <sys/times.h>
67

tests/meta/event/TestEventLogger.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <folly/logging/Logger.h>
1313
#include <folly/logging/LoggerDB.h>
1414
#include <folly/logging/xlog.h>
15+
#include <fstream>
1516
#include <gtest/gtest.h>
1617
#include <string_view>
1718
#include <sys/stat.h>

0 commit comments

Comments
 (0)