Skip to content

Commit 37b55eb

Browse files
committed
iwyu
1 parent 25ef5db commit 37b55eb

8 files changed

Lines changed: 3 additions & 9 deletions

File tree

src/meta/meta_state_service_simple.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
* THE SOFTWARE.
2525
*/
2626

27-
#include <fmt/core.h>
2827
#include <stddef.h>
2928
#include <stdint.h>
3029
#include <functional>

src/meta/test/backup_test.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#include <set>
2727
#include <string>
2828
#include <thread>
29-
#include <type_traits>
3029
#include <utility>
3130
#include <vector>
3231

src/meta/test/dump_file.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* THE SOFTWARE.
2525
*/
2626

27+
#include <fcntl.h>
2728
#include <stdint.h>
2829
#include <stdio.h>
2930
#include <string.h>

src/nfs/nfs_server_impl.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#include <utility>
3434

3535
#include "aio/file_io.h"
36-
#include "fmt/core.h"
3736
#include "nfs_code_definition.h"
3837
#include "nfs_types.h"
3938
#include "runtime/serverlet.h"

src/server/result_writer.cpp

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

2222
#include <pegasus/error.h>
2323
#include <chrono>
24+
#include <type_traits>
2425
#include <utility>
2526

2627
#include "pegasus/client.h"

src/utils/alloc.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
#pragma once
1919

20-
#include <fmt/format.h>
21-
#include <stdint.h>
2220
#include <algorithm> // IWYU pragma: keep
2321
#include <cstddef>
2422
#include <functional>

src/utils/logging.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ static void log_on_sys_exit(::dsn::sys_exit_type)
142142
{
143143
g_stderr_logger->flush();
144144
g_file_logger->flush();
145+
log_cmds.clear();
145146
}
146147

147148
void dsn_log_init(const std::string &log_dir, const std::string &role_name)

src/utils/logging.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,12 @@
1717

1818
#pragma once
1919

20-
#include <fmt/format.h>
2120
#include <spdlog/common.h>
2221
#include <spdlog/pattern_formatter.h>
2322
#include <ctime>
2423
#include <memory>
2524
#include <string>
2625

27-
#include "utils/enum_helper.h"
28-
#include "utils/fmt_utils.h"
29-
3026
namespace spdlog {
3127
namespace details {
3228
struct log_msg;

0 commit comments

Comments
 (0)