Skip to content

Commit f5ff6b9

Browse files
committed
rgw: add missing includes
Signed-off-by: Max Kellermann <[email protected]>
1 parent bbcd13b commit f5ff6b9

30 files changed

+54
-2
lines changed

src/rgw/driver/dbstore/common/dbstore.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// vim: ts=8 sw=2 smarttab
33

44
#include "dbstore.h"
5+
#include "log/Log.h"
56

67
using namespace std;
78

src/rgw/driver/dbstore/dbstore_mgr.h

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

1414
#include "common/ceph_context.h"
1515
#include "common/dbstore.h"
16+
#include "log/Log.h"
1617
#include "sqlite/sqliteDB.h"
1718

1819
using namespace rgw::store;

src/rgw/driver/dbstore/tests/dbstore_tests.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <dbstore.h>
88
#include <sqliteDB.h>
99
#include "rgw_common.h"
10+
#include "common/Clock.h" // for ceph_clock_now()
1011

1112
using namespace std;
1213
using DB = rgw::store::DB;

src/rgw/driver/posix/rgw_sal_posix.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <unistd.h>
2121
#include "rgw_multi.h"
2222
#include "include/scope_guard.h"
23+
#include "common/Clock.h" // for ceph_clock_now()
2324
#include "common/errno.h"
2425

2526
#define dout_subsys ceph_subsys_rgw

src/rgw/driver/rados/cls_fifo_legacy.cc

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

2828
#include "common/async/yield_context.h"
2929
#include "common/random_string.h"
30+
#include "common/strtol.h" // for ceph::parse()
3031

3132
#include "cls/fifo/cls_fifo_types.h"
3233
#include "cls/fifo/cls_fifo_ops.h"

src/rgw/driver/rados/rgw_data_sync.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
22
// vim: ts=8 sw=2 smarttab ft=cpp
33

4+
#include "rgw_data_sync.h"
5+
46
#include "common/ceph_json.h"
57
#include "common/RefCountedObj.h"
68
#include "common/WorkQueue.h"
@@ -10,7 +12,6 @@
1012
#include "rgw_common.h"
1113
#include "rgw_zone.h"
1214
#include "rgw_sync.h"
13-
#include "rgw_data_sync.h"
1415
#include "rgw_rest_conn.h"
1516
#include "rgw_cr_rados.h"
1617
#include "rgw_cr_rest.h"
@@ -34,8 +35,10 @@
3435

3536
#include "include/common_fwd.h"
3637
#include "include/random.h"
38+
#include "include/timegm.h"
3739

3840
#include <boost/asio/yield.hpp>
41+
#include <shared_mutex> // for std::shared_lock
3942
#include <string_view>
4043

4144
#define dout_subsys ceph_subsys_rgw

src/rgw/driver/rados/rgw_datalog.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
22
// vim: ts=8 sw=2 smarttab ft=cpp
33

4+
#include <shared_mutex> // for std::shared_lock
45
#include <vector>
56

67
#include "common/async/yield_context.h"

src/rgw/driver/rados/rgw_pubsub_push.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// vim: ts=8 sw=2 smarttab ft=cpp
33

44
#include "rgw_pubsub_push.h"
5+
#include <shared_mutex> // for std::shared_lock
56
#include <string>
67
#include <sstream>
78
#include <algorithm>

src/rgw/driver/rados/rgw_reshard.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "rgw_sal_rados.h"
1414
#include "cls/rgw/cls_rgw_client.h"
1515
#include "cls/lock/cls_lock_client.h"
16+
#include "common/Clock.h" // for ceph_clock_now()
1617
#include "common/errno.h"
1718
#include "common/ceph_json.h"
1819

src/rgw/radosgw-admin/radosgw-admin.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ extern "C" {
8585
#include "driver/rados/rgw_bucket.h"
8686
#include "driver/rados/rgw_sal_rados.h"
8787

88+
#include <iomanip>
89+
8890
#define dout_context g_ceph_context
8991

9092
static rgw::sal::Driver* driver = NULL;

0 commit comments

Comments
 (0)