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/driver/dbstore/dbstore_mgr.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <map> #include <cerrno> #include <cstdlib> #include <string> #include <cstdio> #include <iostream> #include <vector> #include "common/ceph_context.h" #include "common/dbstore.h" #include "sqlite/sq...
1,524
25.754386
90
h
null
ceph-main/src/rgw/driver/dbstore/common/connection_pool.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) 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 * Lice...
4,665
30.527027
80
h
null
ceph-main/src/rgw/driver/dbstore/common/dbstore.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "dbstore.h" using namespace std; namespace rgw { namespace store { map<string, class ObjectOp*> DB::objectmap = {}; map<string, class ObjectOp*> DB::getObjectMap() { return DB::objectmap; } int DB::Initial...
60,134
25.714793
167
cc
null
ceph-main/src/rgw/driver/dbstore/common/dbstore.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <errno.h> #include <stdlib.h> #include <string> #include <stdio.h> #include <iostream> #include <mutex> #include <condition_variable> #include "fmt/format.h" #include <map> #include "rgw_sal_store.h...
80,764
39.042142
205
h
null
ceph-main/src/rgw/driver/dbstore/common/dbstore_log.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <cerrno> #include <cstdlib> #include <string> #include <cstdio> #include <iostream> #include <fstream> #include "common/dout.h" #undef dout_prefix #define dout_prefix *_dout << "rgw dbstore: "
316
18.8125
70
h
null
ceph-main/src/rgw/driver/dbstore/config/sqlite.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 * Lice...
68,857
32.073007
92
cc
null
ceph-main/src/rgw/driver/dbstore/config/sqlite.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) 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 * Lice...
8,134
46.023121
85
h
null
ceph-main/src/rgw/driver/dbstore/config/sqlite_schema.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) 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 * Lice...
9,244
29.816667
78
h
null
ceph-main/src/rgw/driver/dbstore/config/store.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 * Lice...
892
21.897436
79
cc
null
ceph-main/src/rgw/driver/dbstore/config/store.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) 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 * Lice...
671
23
79
h
null
ceph-main/src/rgw/driver/dbstore/sqlite/connection.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 * Lice...
907
24.942857
70
cc
null
ceph-main/src/rgw/driver/dbstore/sqlite/connection.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) 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 * Lice...
1,485
21.861538
70
h
null
ceph-main/src/rgw/driver/dbstore/sqlite/error.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 * Lice...
952
24.078947
84
cc
null
ceph-main/src/rgw/driver/dbstore/sqlite/error.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) 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 * Lice...
2,348
27.646341
80
h
null
ceph-main/src/rgw/driver/dbstore/sqlite/sqliteDB.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "sqliteDB.h" using namespace std; #define SQL_PREPARE(dpp, params, sdb, stmt, ret, Op) \ do { \ string schema; \ schema = Schema(params); \ sqlite3_prepare_v2 (*sdb, schema.c_st...
97,235
31.444444
121
cc
null
ceph-main/src/rgw/driver/dbstore/sqlite/sqliteDB.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <errno.h> #include <stdlib.h> #include <string> #include <sqlite3.h> #include "rgw/driver/dbstore/common/dbstore.h" using namespace rgw::store; class SQLiteDB : public DB, virtual public DBOp { ...
21,389
37.75
145
h
null
ceph-main/src/rgw/driver/dbstore/sqlite/statement.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 * Lice...
6,976
31.910377
80
cc
null
ceph-main/src/rgw/driver/dbstore/sqlite/statement.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) 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 * Lice...
3,020
33.329545
79
h
null
ceph-main/src/rgw/driver/dbstore/tests/dbstore_mgr_tests.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "common/ceph_context.h" #include "rgw/driver/dbstore/dbstore_mgr.h" #include <filesystem> #include <gtest/gtest.h> #include <memory> using namespace rgw; namespace fs = std::filesystem; const static std::string...
5,319
32.670886
115
cc
null
ceph-main/src/rgw/driver/dbstore/tests/dbstore_tests.cc
#include "gtest/gtest.h" #include <iostream> #include <stdlib.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <dbstore.h> #include <sqliteDB.h> #include "rgw_common.h" using namespace std; using DB = rgw::store::DB; vector<const char*> args; namespace gtest { class Environment* env; class...
41,547
28.300423
137
cc
null
ceph-main/src/rgw/driver/immutable_config/store.cc
// 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 * License version 2.1, as published by the Free Software * Foundation. See f...
13,715
31.425532
91
cc
null
ceph-main/src/rgw/driver/immutable_config/store.h
// 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 * License version 2.1, as published by the Free Software * Foundation. See f...
9,431
51.110497
88
h
null
ceph-main/src/rgw/driver/json_config/store.cc
// 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 * License version 2.1, as published by the Free Software * Foundation. See f...
5,988
32.646067
81
cc
null
ceph-main/src/rgw/driver/json_config/store.h
// 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 * License version 2.1, as published by the Free Software * Foundation. See f...
707
24.285714
78
h
null
ceph-main/src/rgw/driver/rados/cls_fifo_legacy.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2020 Red Hat <contact@redhat.com> * Author: Adam C. Emerson * * This is free software; you can redistribute it and/or * modify it under the terms of the...
76,662
29.182283
111
cc
null
ceph-main/src/rgw/driver/rados/cls_fifo_legacy.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * Ceph - scalable distributed file system * * Copyright (C) 2020 Red Hat <contact@redhat.com> * Author: Adam C. Emerson * * This is free software; you can redistribute it and/or * modify it under the terms of the...
12,040
34.83631
138
h
null
ceph-main/src/rgw/driver/rados/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_acl_s3.h" #include "rgw_tag_s3.h" #include "rgw_bucket.h" #include "rgw_op.h" #include "rgw_bucket_sync.h" #include "services/svc_zone.h" #include "services/svc_bucket.h" #include "services/svc_user...
98,331
33.0957
194
cc
null
ceph-main/src/rgw/driver/rados/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...
25,972
33.538564
183
h
null
ceph-main/src/rgw/driver/rados/rgw_bucket_sync.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_bucket_sync.h" #include "rgw_data_sync.h" #include "rgw_zone.h" #include "services/svc_zone.h" #include "services/svc_bucket_sync.h" #define dout_subsys ceph_subsys_rgw usin...
34,004
32.370952
147
cc
null
ceph-main/src/rgw/driver/rados/rgw_bucket_sync.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* * 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 * License ve...
14,707
34.270983
152
h
null
ceph-main/src/rgw/driver/rados/rgw_cr_rados.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 "rgw_sal.h" #include "rgw_zone.h" #include "rgw_coroutine.h" #include "rgw_cr_rados.h" #include "rgw_sync_counters.h" #include "rgw_bucket.h" #include "rgw_datalog_notify.h" #in...
38,770
31.968537
181
cc
null
ceph-main/src/rgw/driver/rados/rgw_cr_rados.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 "include/ceph_assert.h" #include "rgw_coroutine.h" #include "rgw_sal.h" #include "rgw_sal_rados.h" #include "common/WorkQueue.h" #include "common/Throttle.h...
51,323
29.992754
182
h
null
ceph-main/src/rgw/driver/rados/rgw_cr_tools.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "common/errno.h" #include "rgw_cr_tools.h" #include "rgw_bucket.h" #include "rgw_user.h" #include "rgw_op.h" #include "rgw_acl_s3.h" #include "rgw_zone.h" #include "services/svc_zone.h" #define dout_con...
9,107
30.085324
165
cc
null
ceph-main/src/rgw/driver/rados/rgw_cr_tools.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_cr_rados.h" #include "rgw_tools.h" #include "rgw_lc.h" #include "services/svc_bucket_sync.h" struct rgw_user_create_params { rgw_user user; std::string display_name; std::string ...
2,214
24.755814
127
h
null
ceph-main/src/rgw/driver/rados/rgw_d3n_datacache.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_d3n_datacache.h" #include "rgw_rest_client.h" #include "rgw_auth_s3.h" #include "rgw_op.h" #include "rgw_common.h" #include "rgw_auth_s3.h" #include "rgw_op.h" #include "rgw_crypt_sanitize.h" #if defi...
12,841
33.708108
201
cc
null
ceph-main/src/rgw/driver/rados/rgw_d3n_datacache.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_rados.h" #include <curl/curl.h> #include "rgw_common.h" #include <unistd.h> #include <signal.h> #include "include/Context.h" #include "include/lru.h" #include "rgw_d3n_cacherequest.h" ...
8,486
31.517241
329
h
null
ceph-main/src/rgw/driver/rados/rgw_data_sync.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "common/ceph_json.h" #include "common/RefCountedObj.h" #include "common/WorkQueue.h" #include "common/Throttle.h" #include "common/errno.h" #include "rgw_common.h" #include "rgw_zone.h" #include "rgw_sync...
249,851
35.437509
228
cc
null
ceph-main/src/rgw/driver/rados/rgw_data_sync.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 <fmt/format.h> #include <fmt/ostream.h> #include "include/encoding.h" #include "common/ceph_json.h" #include "common/likely.h" #include "rgw_coroutine.h" #include "rgw_cr_rados.h" #include...
26,605
29.546498
211
h
null
ceph-main/src/rgw/driver/rados/rgw_datalog.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <vector> #include "common/async/yield_context.h" #include "common/debug.h" #include "common/containers.h" #include "common/errno.h" #include "common/error_code.h" #include "common/async/blocked_completio...
32,702
28.515343
136
cc
null
ceph-main/src/rgw/driver/rados/rgw_datalog.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 <cstdint> #include <list> #include <memory> #include <string> #include <string_view> #include <variant> #include <vector> #include <boost/container/flat_map.hpp> #include <boost/container/fl...
11,839
28.89899
111
h
null
ceph-main/src/rgw/driver/rados/rgw_datalog_notify.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_datalog_notify.h" #include "rgw_datalog.h" // custom encoding for v1 notify API struct EntryEncoderV1 { const rgw_data_notify_entry& entry; }; struct SetEncoderV1 { const bc::flat_set<rgw_data_no...
2,246
28.181818
85
cc
null
ceph-main/src/rgw/driver/rados/rgw_datalog_notify.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/container/flat_map.hpp> #include <boost/container/flat_set.hpp> #include "rgw_datalog.h" namespace bc = boost::container; namespace ceph { class Formatter; } class JSONObj; class R...
845
25.4375
71
h
null
ceph-main/src/rgw/driver/rados/rgw_etag_verifier.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_etag_verifier.h" #include "rgw_obj_manifest.h" #define dout_subsys ceph_subsys_rgw namespace rgw::putobj { int create_etag_verifier(const DoutPrefixProvider *dpp, CephCont...
6,148
31.026042
85
cc
null
ceph-main/src/rgw/driver/rados/rgw_etag_verifier.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* * RGW Etag Verifier is an RGW filter which enables the objects copied using * multisite sync to be verified using their ETag from source i.e. the MD5 * checksum of the object is computed at the destination an...
2,817
29.967033
81
h
null
ceph-main/src/rgw/driver/rados/rgw_gc.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_gc.h" #include "rgw_tools.h" #include "include/scope_guard.h" #include "include/rados/librados.hpp" #include "cls/rgw/cls_rgw_client.h" #include "cls/rgw_gc/cls_rgw_gc_client.h" #include "cls/refcoun...
24,800
29.505535
182
cc
null
ceph-main/src/rgw/driver/rados/rgw_gc.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" #include "include/rados/librados.hpp" #include "common/ceph_mutex.h" #include "common/Cond.h" #include "common/Thread.h" #include "rgw_common.h" #include "rgw_sal.h" #includ...
2,650
30.939759
158
h
null
ceph-main/src/rgw/driver/rados/rgw_gc_log.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_gc_log.h" #include "cls/rgw/cls_rgw_client.h" #include "cls/rgw_gc/cls_rgw_gc_client.h" #include "cls/version/cls_version_client.h" void gc_log_init2(librados::ObjectWriteOperation& op, ...
1,704
29.446429
74
cc
null
ceph-main/src/rgw/driver/rados/rgw_lc_tier.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 "common/Formatter.h" #include <common/errno.h> #include "rgw_lc.h" #include "rgw_lc_tier.h" #include "rgw_string.h" #include "rgw_zone.h" #include "r...
39,702
29.284516
248
cc
null
ceph-main/src/rgw/driver/rados/rgw_lc_tier.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_lc.h" #include "rgw_rest_conn.h" #include "rgw_rados.h" #include "rgw_zone.h" #include "rgw_sal_rados.h" #include "rgw_cr_rest.h" #define DEFAULT_MULTIPART_SYNC_PART_SIZE (32 * 1024 * 1...
1,521
28.269231
102
h
null
ceph-main/src/rgw/driver/rados/rgw_log_backing.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "cls/log/cls_log_client.h" #include "cls/version/cls_version_client.h" #include "rgw_log_backing.h" #include "rgw_tools.h" #include "cls_fifo_legacy.h" using namespace std::chrono_literals; namespace cb ...
21,319
29.070522
108
cc
null
ceph-main/src/rgw/driver/rados/rgw_log_backing.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 <optional> #include <iostream> #include <string> #include <string_view> #include <strings.h> #include <boost/container/flat_map.hpp> #include <boost/system/error_code.hpp> #include <fmt/fo...
11,255
27.496203
111
h
null
ceph-main/src/rgw/driver/rados/rgw_metadata.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_metadata.h" #include "rgw_zone.h" #include "rgw_mdlog.h" #include "services/svc_zone.h" #include "services/svc_cls.h" #define dout_subsys ceph_subsys_rgw using namespace std; const std::string RG...
6,677
27.538462
154
cc
null
ceph-main/src/rgw/driver/rados/rgw_metadata.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 <utility> #include <boost/optional.hpp> #include "include/types.h" #include "rgw_common.h" #include "rgw_period_history.h" #include "rgw_mdlog_types.h" #include "cls/versio...
10,364
33.665552
192
h
null
ceph-main/src/rgw/driver/rados/rgw_notify.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "rgw_notify.h" #include "cls/2pc_queue/cls_2pc_queue_client.h" #include "cls/lock/cls_lock_client.h" #include <memory> #include <boost/algorithm/hex.hpp> #include <boost/context/protected_fixedsize_stack.hpp> #i...
39,803
36.836502
154
cc
null
ceph-main/src/rgw/driver/rados/rgw_notify.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 "common/ceph_time.h" #include "include/common_fwd.h" #include "rgw_notify_event_type.h" #include "common/async/yield_context.h" #include "cls/2pc_queue/cls_2pc_queue_types....
4,392
31.540741
138
h
null
ceph-main/src/rgw/driver/rados/rgw_obj_manifest.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_obj_manifest.h" #include "services/svc_zone.h" #include "rgw_rados.h" #include "rgw_bucket.h" #define dout_context g_ceph_context #define dout_subsys ceph_subsys_rgw using namespace std; int RGWOb...
11,655
27.429268
150
cc
null
ceph-main/src/rgw/driver/rados/rgw_obj_manifest.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...
17,607
27.44588
138
h
null
ceph-main/src/rgw/driver/rados/rgw_object_expirer_core.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 "auth/Crypto.h" #include "common/armor.h" #include "common/ceph_json.h" #include "common/config.h" #include "common/ceph_argpa...
13,535
29.555305
125
cc
null
ceph-main/src/rgw/driver/rados/rgw_object_expirer_core.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 <atomic> #include <string> #include <cerrno> #include <sstream> #include <iostream> #include "auth/Crypto.h" #include "common/armor.h" #include "common/ceph_json.h" #include "common/config....
4,865
32.102041
134
h
null
ceph-main/src/rgw/driver/rados/rgw_otp.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> #include <map> #include <boost/algorithm/string.hpp> #include "common/errno.h" #include "common/Formatter.h" #include "common/ceph_json.h" #include "rgw_otp.h" #include "rgw_z...
5,638
25.599057
147
cc
null
ceph-main/src/rgw/driver/rados/rgw_otp.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_sal_fwd.h" #include "cls/otp/cls_otp_types.h" #include "services/svc_meta_be_otp.h" #include "rgw_basic_types.h" #include "rgw_metadata.h" class RGWObjVersionTracker; class RGWMetadat...
2,559
22.063063
75
h
null
ceph-main/src/rgw/driver/rados/rgw_period.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_sync.h" #include "services/svc_zone.h" #define dout_subsys ceph_subsys_rgw using namespace std; using namespace rgw_zone_defaults; int RGWPeriod::get_zonegroup(RGWZoneGroup& zonegroup, ...
10,811
32.267692
149
cc
null
ceph-main/src/rgw/driver/rados/rgw_pubsub_push.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_pubsub_push.h" #include <string> #include <sstream> #include <algorithm> #include "include/buffer_fwd.h" #include "common/Formatter.h" #include "common/iso_8601.h" #include "common/async/completion.h"...
14,786
31.075922
146
cc
null
ceph-main/src/rgw/driver/rados/rgw_pubsub_push.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 <stdexcept> #include "include/buffer_fwd.h" #include "include/common_fwd.h" #include "common/async/yield_context.h" // TODO the env should be used as a tem...
1,776
36.020833
126
h
null
ceph-main/src/rgw/driver/rados/rgw_putobj_processor.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...
24,091
30.534031
173
cc
null
ceph-main/src/rgw/driver/rados/rgw_putobj_processor.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...
10,568
36.34629
93
h
null
ceph-main/src/rgw/driver/rados/rgw_rados.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 <errno.h> #include <stdlib.h> #include <sys/types.h> #include <sstream> #include <boost/algorithm/string.hpp> #include <string_view> #include <boost/container/flat_set.hpp> #i...
316,224
31.251402
266
cc
null
ceph-main/src/rgw/driver/rados/rgw_rados.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 <iostream> #include <functional> #include <boost/container/flat_map.hpp> #include <boost/container/flat_set.hpp> #include "include/rados/librados.hpp" #include "include/Context.h" #include "...
67,543
39.985437
204
h
null
ceph-main/src/rgw/driver/rados/rgw_reshard.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <limits> #include <sstream> #include "rgw_zone.h" #include "driver/rados/rgw_bucket.h" #include "rgw_reshard.h" #include "rgw_sal.h" #include "rgw_sal_rados.h" #include "cls/rgw/cls_rgw_client.h" #include...
47,469
32.429577
171
cc
null
ceph-main/src/rgw/driver/rados/rgw_reshard.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 <initializer_list> #include <functional> #include <iterator> #include <algorithm> #include <boost/intrusive/list.hpp> #include <boost/asio/basic_waitable_timer.hpp> #inclu...
9,281
32.752727
158
h
null
ceph-main/src/rgw/driver/rados/rgw_rest_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_op.h" #include "driver/rados/rgw_bucket.h" #include "rgw_rest_bucket.h" #include "rgw_sal.h" #include "include/str_list.h" #include "services/svc_sys_obj.h" #include "services/svc_zone.h" #define d...
10,640
24.702899
99
cc
null
ceph-main/src/rgw/driver/rados/rgw_rest_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 "rgw_rest.h" #include "rgw_rest_s3.h" class RGWHandler_Bucket : public RGWHandler_Auth_S3 { protected: RGWOp *op_get() override; RGWOp *op_put() override; RGWOp *op_post() override; ...
941
24.459459
80
h
null
ceph-main/src/rgw/driver/rados/rgw_rest_log.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...
37,272
28.371946
155
cc
null
ceph-main/src/rgw/driver/rados/rgw_rest_log.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 Lesse...
9,229
26.307692
88
h
null
ceph-main/src/rgw/driver/rados/rgw_rest_pubsub.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "rgw_rest_s3.h" // s3 compliant notification handler factory class RGWHandler_REST_PSNotifs_S3 : public RGWHandler_REST_S3 { protected: int init_permissions(RGWOp* op, optional_yield y) override {...
1,405
35.051282
87
h
null
ceph-main/src/rgw/driver/rados/rgw_rest_realm.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "common/errno.h" #include "rgw_rest_realm.h" #include "rgw_rest_s3.h" #include "rgw_rest_config.h" #include "rgw_zone.h" #include "rgw_sal_rados.h" #include "services/svc_zone.h" #include "services/svc_md...
12,494
32.143236
137
cc
null
ceph-main/src/rgw/driver/rados/rgw_rest_realm.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_rest.h" class RGWRESTMgr_Realm : public RGWRESTMgr { public: RGWRESTMgr_Realm(); RGWHandler_REST* get_handler(rgw::sal::Driver* driver, req_state*, ...
443
25.117647
80
h
null
ceph-main/src/rgw/driver/rados/rgw_rest_user.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "common/ceph_json.h" #include "rgw_op.h" #include "rgw_user.h" #include "rgw_rest_user.h" #include "rgw_sal.h" #include "include/str_list.h" #include "include/ceph_assert.h" #include "services/svc_zone....
30,043
25.400703
155
cc
null
ceph-main/src/rgw/driver/rados/rgw_rest_user.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_rest.h" #include "rgw_rest_s3.h" class RGWHandler_User : public RGWHandler_Auth_S3 { protected: RGWOp *op_get() override; RGWOp *op_put() override; RGWOp *op_post() override; R...
927
24.081081
80
h
null
ceph-main/src/rgw/driver/rados/rgw_sal_rados.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...
119,695
30.041494
291
cc
null
ceph-main/src/rgw/driver/rados/rgw_sal_rados.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...
45,173
45.95842
272
h
null
ceph-main/src/rgw/driver/rados/rgw_service.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_service.h" #include "services/svc_finisher.h" #include "services/svc_bi_rados.h" #include "services/svc_bilog_rados.h" #include "services/svc_bucket_sobj.h" #include "services/svc_bucket_sync_sobj.h"...
14,354
29.09434
138
cc
null
ceph-main/src/rgw/driver/rados/rgw_service.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 <vector> #include <memory> #include "common/async/yield_context.h" #include "rgw_common.h" struct RGWServices_Def; class RGWServiceInstance { friend struct RGWServices...
5,845
26.064815
131
h
null
ceph-main/src/rgw/driver/rados/rgw_sync.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_sync.h" #include "rgw_rest_conn.h" #include "rgw_cr_rados.h" #include "rgw_cr_rest.h" #include "services/svc_zone.h" #include "services/svc_mdlog.h" #include "services/svc_cls.h" #include <boost/asi...
90,697
33.238581
258
cc
null
ceph-main/src/rgw/driver/rados/rgw_sync.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 <atomic> #include "include/stringify.h" #include "rgw_coroutine.h" #include "rgw_http_client.h" #include "rgw_metadata.h" #include "rgw_meta_sync_status.h" #include "rgw_sal.h" #include "rg...
15,552
27.278182
194
h
null
ceph-main/src/rgw/driver/rados/rgw_sync_counters.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "common/ceph_context.h" #include "rgw_sync_counters.h" namespace sync_counters { PerfCountersRef build(CephContext *cct, const std::string& name) { PerfCountersBuilder b(cct, name, l_first, l_last); ...
1,043
35
104
cc
null
ceph-main/src/rgw/driver/rados/rgw_sync_counters.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_collection.h" namespace sync_counters { enum { l_first = 805000, l_fetch, l_fetch_not_modified, l_fetch_err, l_poll, l_poll_err, l_last, }; PerfCount...
407
14.692308
70
h
null
ceph-main/src/rgw/driver/rados/rgw_sync_error_repo.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 * Licen...
5,425
25.339806
79
cc
null
ceph-main/src/rgw/driver/rados/rgw_sync_error_repo.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...
1,892
30.55
70
h
null
ceph-main/src/rgw/driver/rados/rgw_sync_module.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_coroutine.h" #include "rgw_cr_rados.h" #include "rgw_sync_module.h" #include "rgw_data_sync.h" #include "rgw_bucket.h" #include "rgw_sync_module_log.h" #include "rgw_sync_modu...
3,371
37.318182
133
cc
null
ceph-main/src/rgw/driver/rados/rgw_sync_module.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" #include "rgw_coroutine.h" class RGWBucketInfo; class RGWRemoteDataLog; struct RGWDataSyncCtx; struct RGWDataSyncEnv; struct rgw_bucket_entry_owner; struct rgw_obj_key; struct...
5,993
28.382353
166
h
null
ceph-main/src/rgw/driver/rados/rgw_sync_module_aws.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "common/errno.h" #include "rgw_common.h" #include "rgw_coroutine.h" #include "rgw_sync_module.h" #include "rgw_data_sync.h" #include "rgw_sync_module_aws.h" #include "rgw_cr_rados.h" #include "rgw_rest_co...
62,642
33.34375
231
cc
null
ceph-main/src/rgw/driver/rados/rgw_sync_module_aws.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_sync_module.h" struct rgw_sync_aws_multipart_part_info { int part_num{0}; uint64_t ofs{0}; uint64_t size{0}; std::string etag; void encode(bufferlist& bl) const { ENCODE_...
2,651
23.330275
147
h
null
ceph-main/src/rgw/driver/rados/rgw_sync_module_es.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_b64.h" #include "rgw_common.h" #include "rgw_coroutine.h" #include "rgw_sync_module.h" #include "rgw_data_sync.h" #include "rgw_sync_module_es.h" #include "rgw_sync_module_es_rest.h" #include "rgw_res...
33,146
33.420561
254
cc
null
ceph-main/src/rgw/driver/rados/rgw_sync_module_es.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_sync_module.h" enum class ESType { /* string datatypes */ String, /* Deprecated Since 5.X+ */ Text, Keyword, /* Numeric Types */ Long, Integer, Short, Byte, Double, Float, ...
1,508
24.15
147
h
null
ceph-main/src/rgw/driver/rados/rgw_sync_module_es_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_sync_module_es.h" #include "rgw_sync_module_es_rest.h" #include "rgw_es_query.h" #include "rgw_op.h" #include "rgw_rest.h" #include "rgw_rest_s3.h" #include "rgw_sal_rados.h" #define dout_context g_c...
14,407
32.585082
127
cc
null
ceph-main/src/rgw/driver/rados/rgw_sync_module_es_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 "rgw_rest.h" class RGWElasticSyncModuleInstance; class RGWRESTMgr_MDSearch_S3 : public RGWRESTMgr { public: explicit RGWRESTMgr_MDSearch_S3() {} RGWHandler_REST *get_handler(rgw::sal::...
521
26.473684
80
h
null
ceph-main/src/rgw/driver/rados/rgw_sync_module_log.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_coroutine.h" #include "rgw_cr_rados.h" #include "rgw_sync_module.h" #include "rgw_data_sync.h" #include "rgw_sync_module_log.h" #define dout_subsys ceph_subsys_rgw using name...
3,586
45.584416
254
cc
null
ceph-main/src/rgw/driver/rados/rgw_sync_module_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 "rgw_sync_module.h" class RGWLogSyncModule : public RGWSyncModule { public: RGWLogSyncModule() {} bool supports_data_export() override { return false; } int create_instance(const...
444
26.8125
147
h
null
ceph-main/src/rgw/driver/rados/rgw_sync_trace.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #ifndef CEPH_RGW_SYNC_TRACE_H #define CEPH_RGW_SYNC_TRACE_H #include <regex> #include "common/debug.h" #include "common/ceph_json.h" #include "rgw_sync_trace.h" #include "rgw_rados.h" #include "rgw_worker.h" #d...
8,271
27.426117
166
cc