repo
stringlengths
1
152
file
stringlengths
15
205
code
stringlengths
0
41.6M
file_length
int64
0
41.6M
avg_line_length
float64
0
1.81M
max_line_length
int64
0
12.7M
extension_type
stringclasses
90 values
null
ceph-main/src/rgw/rgw_acl.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <map> #include <string> #include <string_view> #include <include/types.h> #include <boost/optional.hpp> #include <boost/algorithm/string/predicate.hpp> #include "common/debug.h" #include "...
11,762
27.344578
107
h
null
ceph-main/src/rgw/rgw_acl_s3.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <string.h> #include <iostream> #include <map> #include "include/types.h" #include "rgw_acl_s3.h" #include "rgw_user.h" #include "rgw_sal.h" #define dout_subsys ceph_subsys_rgw #define RGW_URI_ALL_US...
17,626
26.371118
135
cc
null
ceph-main/src/rgw/rgw_acl_s3.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <map> #include <string> #include <iosfwd> #include <include/types.h> #include "include/str_list.h" #include "rgw_xml.h" #include "rgw_acl.h" #include "rgw_sal_fwd.h" class RGWUserCtl; clas...
3,136
26.043103
102
h
null
ceph-main/src/rgw/rgw_acl_swift.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <string.h> #include <vector> #include <boost/algorithm/string/predicate.hpp> #include "common/ceph_json.h" #include "rgw_common.h" #include "rgw_user.h" #include "rgw_acl_swift.h" #include "rgw_sal.h" ...
12,827
28.220957
87
cc
null
ceph-main/src/rgw/rgw_acl_swift.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <map> #include <vector> #include <string> #include <include/types.h> #include <boost/optional.hpp> #include "rgw_acl.h" class RGWUserCtl; class RGWAccessControlPolicy_SWIFT : public RGWAc...
1,709
27.983051
73
h
null
ceph-main/src/rgw/rgw_acl_types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2019 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
5,909
26.616822
79
h
null
ceph-main/src/rgw/rgw_admin.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <errno.h> #include <iostream> #include <sstream> #include <string> #include <boost/optional.hpp> extern "C" { #include <liboath/oath.h> } #include <fmt/format.h> #include "auth/Crypto.h" #include "comp...
379,777
34.410536
211
cc
null
ceph-main/src/rgw/rgw_aio.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2018 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
5,020
33.156463
146
cc
null
ceph-main/src/rgw/rgw_aio.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2018 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
3,161
29.114286
84
h
null
ceph-main/src/rgw/rgw_aio_throttle.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2018 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
5,041
23.837438
74
cc
null
ceph-main/src/rgw/rgw_aio_throttle.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2018 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
3,530
25.954198
78
h
null
ceph-main/src/rgw/rgw_amqp.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_amqp.h" #include <amqp.h> #include <amqp_ssl_socket.h> #include <amqp_tcp_socket.h> #include <amqp_framing.h> #include "include/ceph_assert.h" #include <sstream> #include <cstring> #include <unordered...
37,625
34.76616
146
cc
null
ceph-main/src/rgw/rgw_amqp.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <string> #include <functional> #include <boost/optional.hpp> #include "include/common_fwd.h" struct amqp_connection_info; namespace rgw::amqp { // the reply callback is expected to get a...
2,234
25.927711
133
h
null
ceph-main/src/rgw/rgw_appmain.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2022 Red Hat, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Licen...
20,164
30.755906
103
cc
null
ceph-main/src/rgw/rgw_arn.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_arn.h" #include "rgw_common.h" #include <regex> using namespace std; namespace rgw { namespace { boost::optional<Partition> to_partition(const smatch::value_type& p, bool wildcards) { if (p ...
11,916
29.713918
109
cc
null
ceph-main/src/rgw/rgw_arn.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <string> #include <boost/optional.hpp> class rgw_obj; class rgw_bucket; namespace rgw { enum struct Partition { aws, aws_cn, aws_us_gov, wildcard // If we wanted our own ARNs for princi...
3,948
31.368852
113
h
null
ceph-main/src/rgw/rgw_asio_client.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <boost/algorithm/string/predicate.hpp> #include <boost/asio/write.hpp> #include "rgw_asio_client.h" #include "rgw_perf_counters.h" #define dout_context g_ceph_context #define dout_subsys ceph_subsys_rgw ...
5,299
26.46114
79
cc
null
ceph-main/src/rgw/rgw_asio_client.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <boost/asio/ip/tcp.hpp> #include <boost/beast/core.hpp> #include <boost/beast/http.hpp> #include "include/ceph_assert.h" #include "rgw_client_io.h" namespace rgw { namespace asio { namespa...
1,640
25.047619
74
h
null
ceph-main/src/rgw/rgw_asio_frontend.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <atomic> #include <ctime> #include <thread> #include <vector> #include <boost/asio.hpp> #include <boost/intrusive/list.hpp> #include <boost/smart_ptr/intrusive_ref_counter.hpp> #include <boost/context/pr...
36,436
29.364167
103
cc
null
ceph-main/src/rgw/rgw_asio_frontend.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <memory> #include "rgw_frontend.h" #define REQUEST_TIMEOUT 65000 class RGWAsioFrontend : public RGWFrontend { class Impl; std::unique_ptr<Impl> impl; public: RGWAsioFrontend(RGWProcess...
611
22.538462
70
h
null
ceph-main/src/rgw/rgw_asio_frontend_timer.h
#pragma once #include <boost/asio/basic_waitable_timer.hpp> #include <boost/intrusive_ptr.hpp> #include "common/ceph_time.h" namespace rgw { // a WaitHandler that closes a stream if the timeout expires template <typename Stream> struct timeout_handler { // this handler may outlive the timer/stream, so we need to ...
1,822
26.208955
93
h
null
ceph-main/src/rgw/rgw_auth.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <array> #include <string> #include "rgw_common.h" #include "rgw_auth.h" #include "rgw_quota.h" #include "rgw_user.h" #include "rgw_http_client.h" #include "rgw_keystone.h" #include "rgw_sal.h" #include "r...
30,728
31.865241
149
cc
null
ceph-main/src/rgw/rgw_auth.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <functional> #include <optional> #include <ostream> #include <type_traits> #include <system_error> #include <utility> #include "rgw_common.h" #include "rgw_web_idp.h" #define RGW_USER_ANON_...
28,787
35.348485
144
h
null
ceph-main/src/rgw/rgw_auth_filters.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <type_traits> #include <boost/logic/tribool.hpp> #include <boost/optional.hpp> #include "rgw_service.h" #include "rgw_common.h" #include "rgw_auth.h" #include "rgw_user.h" namespace rgw { ...
9,946
31.828383
109
h
null
ceph-main/src/rgw/rgw_auth_keystone.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <string> #include <vector> #include <errno.h> #include <fnmatch.h> #include "rgw_b64.h" #include "common/errno.h" #include "common/ceph_json.h" #include "include/types.h" #include "include/str_list.h" ...
27,011
33.944373
125
cc
null
ceph-main/src/rgw/rgw_auth_keystone.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <string_view> #include <utility> #include <boost/optional.hpp> #include "rgw_auth.h" #include "rgw_rest_s3.h" #include "rgw_common.h" #include "rgw_keystone.h" namespace rgw { namespace aut...
7,368
35.661692
117
h
null
ceph-main/src/rgw/rgw_auth_registry.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <functional> #include <memory> #include <ostream> #include <type_traits> #include <utility> #include "rgw_auth.h" #include "rgw_auth_s3.h" #include "rgw_swift_auth.h" #include "rgw_rest_sts....
3,080
30.438776
84
h
null
ceph-main/src/rgw/rgw_auth_s3.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <algorithm> #include <map> #include <iterator> #include <string> #include <string_view> #include <vector> #include "common/armor.h" #include "common/utf8.h" #include "rgw_rest_s3.h" #include "rgw_auth_s3....
42,302
31.24314
109
cc
null
ceph-main/src/rgw/rgw_auth_s3.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <array> #include <memory> #include <string> #include <string_view> #include <tuple> #include <boost/algorithm/string.hpp> #include <boost/container/static_vector.hpp> #include "common/sstri...
23,640
35.539413
101
h
null
ceph-main/src/rgw/rgw_b64.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <boost/archive/iterators/base64_from_binary.hpp> #include <boost/archive/iterators/binary_from_base64.hpp> #include <boost/archive/iterators/insert_linebreaks.hpp> #include <boost/archive/ite...
2,336
26.494118
70
h
null
ceph-main/src/rgw/rgw_basic_types.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <iostream> #include <sstream> #include <string> #include "cls/user/cls_user_types.h" #include "rgw_basic_types.h" #include "rgw_bucket.h" #include "rgw_xml.h" #include "common/ceph_json.h" #include "com...
4,934
26.265193
89
cc
null
ceph-main/src/rgw/rgw_basic_types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2019 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
7,263
23.876712
91
h
null
ceph-main/src/rgw/rgw_bucket.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_bucket.h" #include "common/errno.h" #define dout_subsys ceph_subsys_rgw // stolen from src/cls/version/cls_version.cc #define VERSION_ATTR "ceph.objclass.version" using namespace std; static void...
5,216
26.898396
124
cc
null
ceph-main/src/rgw/rgw_bucket.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <string> #include <memory> #include <variant> #include <boost/container/flat_map.hpp> #include <boost/container/flat_set.hpp> #include "include/types.h" #include "rgw_common.h" #include "rg...
1,295
34.027027
132
h
null
ceph-main/src/rgw/rgw_bucket_encryption.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp // #include "rgw_bucket_encryption.h" #include "rgw_xml.h" #include "common/ceph_json.h" void ApplyServerSideEncryptionByDefault::decode_xml(XMLObj *obj) { RGWXMLDecoder::decode_xml("KMSMasterKeyID", kmsMasterKey...
1,677
32.56
114
cc
null
ceph-main/src/rgw/rgw_bucket_encryption.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <include/types.h> class XMLObj; class ApplyServerSideEncryptionByDefault { std::string kmsMasterKeyID; std::string sseAlgorithm; public: ApplyServerSideEncryptionByDefault() {}; App...
3,562
23.916084
80
h
null
ceph-main/src/rgw/rgw_bucket_layout.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2020 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
9,706
24.47769
100
cc
null
ceph-main/src/rgw/rgw_bucket_layout.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2020 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
9,694
33.257951
105
h
null
ceph-main/src/rgw/rgw_bucket_sync_cache.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2020 Red Hat, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Licen...
3,750
31.059829
84
h
null
ceph-main/src/rgw/rgw_bucket_types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2019 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
6,688
27.58547
82
h
null
ceph-main/src/rgw/rgw_cache.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_cache.h" #include "rgw_perf_counters.h" #include <errno.h> #define dout_subsys ceph_subsys_rgw using namespace std; int ObjectCache::get(const DoutPrefixProvider *dpp, const string& name, ObjectCa...
11,630
26.692857
143
cc
null
ceph-main/src/rgw/rgw_cache.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <string> #include <map> #include <unordered_map> #include "include/types.h" #include "include/utime.h" #include "include/ceph_assert.h" #include "common/ceph_mutex.h" #include "cls/version/c...
6,247
27.017937
136
h
null
ceph-main/src/rgw/rgw_client_io.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include "rgw_client_io.h" #include "rgw_crypt.h" #include "rgw_crypt_sanitize.h" #define dout_subsys ceph_subsys_rgw namespace rgw { namespace io { [[n...
801
21.914286
70
cc
null
ceph-main/src/rgw/rgw_client_io.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <exception> #include <string> #include <string_view> #include <streambuf> #include <istream> #include <stdlib.h> #include <system_error> #include "include/types.h" #include "rgw_common.h" ...
15,240
33.956422
81
h
null
ceph-main/src/rgw/rgw_client_io_filters.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <type_traits> #include <boost/optional.hpp> #include "rgw_common.h" #include "rgw_client_io.h" namespace rgw { namespace io { template <typename T> class AccountingFilter : public Decorat...
13,842
29.424176
88
h
null
ceph-main/src/rgw/rgw_common.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <errno.h> #include <vector> #include <algorithm> #include <string> #include <boost/tokenizer.hpp> #include "json_spirit/json_spirit.h" #include "common/ceph_json.h" #include "common/Formatter.h" #include...
88,229
27.683355
150
cc
null
ceph-main/src/rgw/rgw_common.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2004-2009 Sage Weil <sage@newdream.net> * Copyright (C) 2015 Yehuda Sadeh <yehuda@redhat.com> * * This is free software; you can redistribute it ...
59,215
31.095393
149
h
null
ceph-main/src/rgw/rgw_compression.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_compression.h" #define dout_subsys ceph_subsys_rgw using namespace std; int rgw_compression_info_from_attr(const bufferlist& attr, bool& need_decompress, ...
7,803
31.92827
101
cc
null
ceph-main/src/rgw/rgw_compression.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <vector> #include "compressor/Compressor.h" #include "rgw_putobj.h" #include "rgw_op.h" #include "rgw_compression_types.h" int rgw_compression_info_from_attr(const bufferlist& attr, ...
2,091
32.206349
85
h
null
ceph-main/src/rgw/rgw_compression_types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2019 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
2,050
25.636364
101
h
null
ceph-main/src/rgw/rgw_coroutine.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "include/Context.h" #include "common/ceph_json.h" #include "rgw_coroutine.h" // re-include our assert to clobber the system one; fix dout: #include "include/ceph_assert.h" #include <boost/asio/yield.hpp>...
29,156
24.779841
200
cc
null
ceph-main/src/rgw/rgw_coroutine.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #ifdef _ASSERT_H #define NEED_ASSERT_H #pragma push_macro("_ASSERT_H") #endif #include <boost/asio.hpp> #include <boost/intrusive_ptr.hpp> #ifdef NEED_ASSERT_H #pragma pop_macro("_ASSERT_H") #endif ...
19,197
25.55325
153
h
null
ceph-main/src/rgw/rgw_cors.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2013 eNovance SAS <licensing@enovance.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesse...
5,513
27.42268
81
cc
null
ceph-main/src/rgw/rgw_cors.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2013 eNovance SAS <licensing@enovance.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Less...
3,817
27.281481
110
h
null
ceph-main/src/rgw/rgw_cors_s3.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2013 eNovance SAS <licensing@enovance.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Less...
7,425
29.064777
114
cc
null
ceph-main/src/rgw/rgw_cors_s3.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2013 eNovance SAS <licensing@enovance.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Less...
1,504
24.508475
107
h
null
ceph-main/src/rgw/rgw_cors_swift.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2013 eNovance SAS <licensing@enovance.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Less...
2,339
26.857143
76
h
null
ceph-main/src/rgw/rgw_cr_rest.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_cr_rest.h" #include "rgw_coroutine.h" // re-include our assert to clobber the system one; fix dout: #include "include/ceph_assert.h" #include <boost/asio/yield.hpp> #define dout_context g_ceph_con...
8,860
24.173295
145
cc
null
ceph-main/src/rgw/rgw_cr_rest.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <boost/intrusive_ptr.hpp> #include <mutex> #include "include/ceph_assert.h" // boost header clobbers our assert.h #include "rgw_coroutine.h" #include "rgw_rest_conn.h" struct rgw_rest_obj ...
19,624
32.20643
134
h
null
ceph-main/src/rgw/rgw_crypt.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /** * Crypto filters for Put/Post/Get operations. */ #include <string_view> #include <rgw/rgw_op.h> #include <rgw/rgw_crypt.h> #include <auth/Crypto.h> #include <rgw/rgw_b64.h> #include <rgw/rgw_rest_s3.h> #inc...
57,311
35.434838
157
cc
null
ceph-main/src/rgw/rgw_crypt.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /** * Crypto filters for Put/Post/Get operations. */ #pragma once #include <string_view> #include <rgw/rgw_op.h> #include <rgw/rgw_rest.h> #include <rgw/rgw_rest_s3.h> #include "rgw_putobj.h" #include "common/...
6,873
37.188889
98
h
null
ceph-main/src/rgw/rgw_crypt_sanitize.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * rgw_crypt_sanitize.cc * * Created on: Mar 3, 2017 * Author: adam */ #include "rgw_common.h" #include "rgw_crypt_sanitize.h" #include "boost/algorithm/string/predicate.hpp" namespace rgw { namespac...
2,505
27.157303
110
cc
null
ceph-main/src/rgw/rgw_crypt_sanitize.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <string_view> #include "rgw_common.h" namespace rgw { namespace crypt_sanitize { /* * Temporary container for suppressing printing if variable contains secret key. */ struct env { std::...
1,789
24.942029
102
h
null
ceph-main/src/rgw/rgw_d3n_cacherequest.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <fcntl.h> #include <stdlib.h> #include <aio.h> #include "include/rados/librados.hpp" #include "include/Context.h" #include "common/async/completion.h" #include <errno.h> #include "common/er...
5,402
36.006849
146
h
null
ceph-main/src/rgw/rgw_dencoder.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_common.h" #include "rgw_rados.h" #include "rgw_zone.h" #include "rgw_log.h" #include "rgw_acl.h" #include "rgw_acl_s3.h" #include "rgw_cache.h" #include "rgw_meta_sync_status.h" #include "rgw_data_syn...
981
22.380952
97
cc
null
ceph-main/src/rgw/rgw_dmclock.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2019 Red Hat, Inc. * Copyright (C) 2019 SUSE LLC * * This is free software; you can redistribute it and/or * modify it under the terms of the GN...
1,430
26
84
h
null
ceph-main/src/rgw/rgw_dmclock_async_scheduler.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "common/async/completion.h" #include "rgw_dmclock_async_scheduler.h" #include "rgw_dmclock_scheduler.h" namespace rgw::dmclock { AsyncScheduler::~AsyncScheduler() { cancel(); if (observer) { cct-...
5,178
27.146739
79
cc
null
ceph-main/src/rgw/rgw_dmclock_async_scheduler.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2018 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Licen...
7,424
33.059633
83
h
null
ceph-main/src/rgw/rgw_dmclock_scheduler.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2019 Red Hat, Inc. * (C) 2019 SUSE LLC * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Le...
2,173
23.988506
94
h
null
ceph-main/src/rgw/rgw_dmclock_scheduler_ctx.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2019 Red Hat, Inc. * (C) 2019 SUSE Linux LLC * This is free software; you can redistribute it and/or * modify it under the terms of the ...
5,839
31.625698
78
cc
null
ceph-main/src/rgw/rgw_dmclock_scheduler_ctx.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "common/perf_counters.h" #include "common/ceph_context.h" #include "common/config.h" #include "rgw_dmclock.h" namespace queue_counters { enum { l_first = 427150, l_qlen, ...
3,159
25.333333
87
h
null
ceph-main/src/rgw/rgw_dmclock_sync_scheduler.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_dmclock_scheduler.h" #include "rgw_dmclock_sync_scheduler.h" #include "rgw_dmclock_scheduler_ctx.h" namespace rgw::dmclock { SyncScheduler::~SyncScheduler() { cancel(); } int SyncScheduler::add_r...
3,340
27.313559
81
cc
null
ceph-main/src/rgw/rgw_dmclock_sync_scheduler.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2018 SUSE Linux Gmbh * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lic...
2,478
30.782051
101
h
null
ceph-main/src/rgw/rgw_env.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_common.h" #include "rgw_log.h" #include <string> #include <map> #include "include/ceph_assert.h" #include "rgw_crypt_sanitize.h" #define dout_context g_ceph_context #define dout_subsys ceph_subsys_r...
3,767
22.698113
133
cc
null
ceph-main/src/rgw/rgw_es_main.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <list> #include <string> #include <iostream> #include "global/global_init.h" #include "global/global_context.h" #include "common/ceph_argparse.h" #include "common/ceph_json.h" #include "rgw_es_query.h" ...
2,598
32.753247
112
cc
null
ceph-main/src/rgw/rgw_es_query.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <list> #include <map> #include <string> #include <iostream> #include <boost/algorithm/string.hpp> #include "common/ceph_json.h" #include "rgw_common.h" #include "rgw_es_query.h" #define dout_context g_c...
16,899
23.246772
174
cc
null
ceph-main/src/rgw/rgw_es_query.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "rgw_string.h" class ESQueryStack { std::list<std::string> l; std::list<std::string>::iterator iter; public: explicit ESQueryStack(std::list<std::string>& src) { assign(src); } ...
3,705
21.460606
115
h
null
ceph-main/src/rgw/rgw_file.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "include/compat.h" #include "include/rados/rgw_file.h" #include <sys/types.h> #include <sys/stat.h> #include "rgw_lib.h" #include "rgw_resolve.h" #include "rgw_op.h" #include "rgw_rest.h" #include "rgw_a...
75,443
26.060258
95
cc
null
ceph-main/src/rgw/rgw_file.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "include/rados/rgw_file.h" /* internal header */ #include <string.h> #include <string_view> #include <sys/stat.h> #include <stdint.h> #include <atomic> #include <chrono> #include <thread> #...
77,679
26.179846
92
h
null
ceph-main/src/rgw/rgw_flight.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright 2023 IBM * * See file COPYING for licensing information. */ #include <iostream> #include <fstream> #include <mutex> #include <map> #include <algorit...
20,311
27.016552
108
cc
null
ceph-main/src/rgw/rgw_flight.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright 2023 IBM * * See file COPYING for licensing information. */ #pragma once #include <map> #include <mutex> #include <atomic> #include "include/commo...
5,924
25.689189
91
h
null
ceph-main/src/rgw/rgw_flight_frontend.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright 2023 IBM * * See file COPYING for licensing information. */ #include <cstdio> #include <filesystem> #include <sstream> #include "arrow/type.h" #inc...
7,224
28.251012
145
cc
null
ceph-main/src/rgw/rgw_flight_frontend.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright 2023 IBM * * See file COPYING for licensing information. */ #pragma once #include "include/common_fwd.h" #include "common/Thread.h" #include "rgw_f...
1,934
21.241379
72
h
null
ceph-main/src/rgw/rgw_formats.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2011 New Dream Network * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * ...
9,132
23.225464
120
cc
null
ceph-main/src/rgw/rgw_formats.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "common/Formatter.h" #include <list> #include <stdint.h> #include <string> #include <ostream> struct plain_stack_entry { int size; bool is_array; }; /* FIXME: this class is mis-named. ...
3,776
27.186567
112
h
null
ceph-main/src/rgw/rgw_frontend.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <signal.h> #include "rgw_frontend.h" #include "include/str_list.h" #include "include/ceph_assert.h" #define dout_context g_ceph_context #define dout_subsys ceph_subsys_rgw using namespace std; int RG...
2,318
20.877358
74
cc
null
ceph-main/src/rgw/rgw_frontend.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <map> #include <string> #include <vector> #include "common/RWLock.h" #include "rgw_request.h" #include "rgw_process.h" #include "rgw_process_env.h" #include "rgw_realm_reloader.h" #include...
5,004
22.608491
81
h
null
ceph-main/src/rgw/rgw_gc_log.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "include/rados/librados.hpp" #include "cls/rgw/cls_rgw_types.h" // initialize the cls_rgw_gc queue void gc_log_init2(librados::ObjectWriteOperation& op, uint64_t max_size,...
1,041
34.931034
75
h
null
ceph-main/src/rgw/rgw_http_client.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "include/compat.h" #include "common/errno.h" #include <curl/curl.h> #include <curl/easy.h> #include <curl/multi.h> #include "rgw_common.h" #include "rgw_http_client.h" #include "rgw_http_errors.h" #incl...
30,536
23.948529
148
cc
null
ceph-main/src/rgw/rgw_http_client.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "common/async/yield_context.h" #include "common/Cond.h" #include "rgw_common.h" #include "rgw_string.h" #include "rgw_http_client_types.h" #include <atomic> using param_pair_t = std::pair<s...
9,012
24.825215
90
h
null
ceph-main/src/rgw/rgw_http_client_curl.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_http_client_curl.h" #include <mutex> #include <vector> #include <curl/curl.h> #include "rgw_common.h" #define dout_context g_ceph_context #define dout_subsys ceph_subsys_rgw #ifdef WITH_CURL_OPENSSL...
2,530
21.39823
80
cc
null
ceph-main/src/rgw/rgw_http_client_curl.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2018 SUSE Linux GmBH * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Li...
680
21.7
70
h
null
ceph-main/src/rgw/rgw_http_client_types.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * Ceph - scalable distributed file system * * Copyright (C) 2019 Red Hat, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lic...
1,367
18.542857
73
h
null
ceph-main/src/rgw/rgw_http_errors.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include "rgw_common.h" typedef const std::map<int,const std::pair<int, const char*>> rgw_http_errors; extern rgw_http_errors rgw_http_s3_errors; extern rgw_http_errors rgw_http_swift_errors; exte...
938
19.866667
78
h
null
ceph-main/src/rgw/rgw_iam_policy.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <cstring> #include <iostream> #include <regex> #include <sstream> #include <stack> #include <utility> #include <arpa/inet.h> #include <experimental/iterator> #include "rapidjson/reader.h" #include "in...
44,595
25.800481
111
cc
null
ceph-main/src/rgw/rgw_iam_policy.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <bitset> #include <chrono> #include <cstdint> #include <iostream> #include <string> #include <string_view> #include <boost/algorithm/string/predicate.hpp> #include <boost/container/flat_map....
19,086
31.908621
180
h
null
ceph-main/src/rgw/rgw_iam_policy_keywords.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once namespace rgw { namespace IAM { enum class TokenKind { pseudo, top, statement, cond_op, cond_key, version_key, effect_key, princ_type }; enum class TokenID { /// Pseudo-token Top, /// Top...
2,454
16.535714
74
h
null
ceph-main/src/rgw/rgw_jsonparser.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <errno.h> #include <string.h> #include <iostream> #include <map> #include "include/types.h" #include "common/Formatter.h" #include "common/ceph_json.h" #include "rgw_common.h" #define dout_subsys ceph...
2,902
20.664179
70
cc
null
ceph-main/src/rgw/rgw_kafka.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_kafka.h" #include "rgw_url.h" #include <librdkafka/rdkafka.h> #include "include/ceph_assert.h" #include <sstream> #include <cstring> #include <unordered_map> #include <string> #include <vector> #incl...
28,163
36.702811
315
cc
null
ceph-main/src/rgw/rgw_kafka.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #pragma once #include <string> #include <functional> #include <boost/optional.hpp> #include "include/common_fwd.h" namespace rgw::kafka { // the reply callback is expected to get an integer parameter // indicat...
1,873
26.970149
185
h