Search is not available for this dataset
repo
stringlengths
2
152
file
stringlengths
15
239
code
stringlengths
0
58.4M
file_length
int64
0
58.4M
avg_line_length
float64
0
1.81M
max_line_length
int64
0
12.7M
extension_type
stringclasses
364 values
null
ceph-main/src/rgw/rgw_sal_motr.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=2 sw=2 expandtab ft=cpp /* * Ceph - scalable distributed file system * * SAL implementation for the CORTX Motr backend * * Copyright (C) 2021 Seagate Technology LLC and/or its Affiliates * * This is free software; you can redistri...
123,860
29.957511
178
cc
null
ceph-main/src/rgw/rgw_sal_motr.h
// vim: ts=2 sw=2 expandtab ft=cpp /* * Ceph - scalable distributed file system * * SAL implementation for the CORTX Motr backend * * Copyright (C) 2021 Seagate Technology LLC and/or its Affiliates * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
51,012
41.724456
210
h
null
ceph-main/src/rgw/rgw_sal_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...
17,406
37.941834
163
h
null
ceph-main/src/rgw/rgw_signal.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...
2,217
23.108696
72
cc
null
ceph-main/src/rgw/rgw_signal.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 * Licen...
699
20.875
70
h
null
ceph-main/src/rgw/rgw_string.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_string.h" static bool char_eq(char c1, char c2) { return c1 == c2; } static bool ci_char_eq(char c1, char c2) { return tolower(c1) == tolower(c2); } bool match_wildcards(std::string_view patter...
976
20.23913
76
cc
null
ceph-main/src/rgw/rgw_string.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 <errno.h> #include <stdlib.h> #include <limits.h> #include <string_view> #include <string> #include <stdexcept> #include <boost/container/small_vector.hpp> struct ltstr_nocase { bool oper...
6,357
25.940678
96
h
null
ceph-main/src/rgw/rgw_sts.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 <ctime> #include <regex> #include <boost/format.hpp> #include <boost/algorithm/string/replace.hpp> #include "common/errno.h" #include "common/Formatter.h" #include "common/ceph_json.h" ...
16,619
34.361702
141
cc
null
ceph-main/src/rgw/rgw_sts.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_role.h" #include "rgw_auth.h" #include "rgw_web_idp.h" namespace STS { class AssumeRoleRequestBase { protected: static constexpr uint64_t MIN_POLICY_SIZE = 1; static constexpr uint...
9,296
35.892857
132
h
null
ceph-main/src/rgw/rgw_swift_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 <algorithm> #include <string_view> #include <boost/container/static_vector.hpp> #include <boost/algorithm/string/predicate.hpp> #include <boost/algorithm/string.hpp> #include "rgw_swift_...
22,983
28.618557
129
cc
null
ceph-main/src/rgw/rgw_swift_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 "rgw_common.h" #include "rgw_user.h" #include "rgw_op.h" #include "rgw_rest.h" #include "rgw_auth.h" #include "rgw_auth_keystone.h" #include "rgw_auth_filters.h" #include "rgw_sal.h" #define...
13,237
36.290141
114
h
null
ceph-main/src/rgw/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" #define dout_subsys ceph_subsys_rgw using namespace std; std::ostream& RGWMetaSyncStatusManager::gen_prefix(std::ostream& out) const { return out << "meta sync: "; } unsigned RGWMetaSyn...
448
17.708333
76
cc
null
ceph-main/src/rgw/rgw_sync_checkpoint.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,366
33.061818
107
cc
null
ceph-main/src/rgw/rgw_sync_checkpoint.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...
1,239
33.444444
78
h
null
ceph-main/src/rgw/rgw_sync_policy.cc
#include "rgw_common.h" #include "rgw_sync_policy.h" #include "rgw_bucket.h" #define dout_subsys ceph_subsys_rgw using namespace std; string rgw_sync_bucket_entity::bucket_key() const { return rgw_sync_bucket_entities::bucket_key(bucket); } bool rgw_sync_pipe_filter_tag::from_str(const string& s) { if (s.empt...
17,358
21.029188
159
cc
null
ceph-main/src/rgw/rgw_sync_policy.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 ver...
17,549
24.695461
136
h
null
ceph-main/src/rgw/rgw_tag.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <map> #include <string> #include <common/errno.h> #include <boost/algorithm/string.hpp> #include "rgw_tag.h" #include "rgw_common.h" using namespace std; void RGWObjTags::add_tag(const string& key, con...
1,505
21.147059
71
cc
null
ceph-main/src/rgw/rgw_tag.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 <include/types.h> #include <map> class RGWObjTags { public: using tag_map_t = std::multimap <std::string, std::string>; protected: tag_map_t tag_map; uint32_t max_o...
1,360
26.22
75
h
null
ceph-main/src/rgw/rgw_tag_s3.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <map> #include <string> #include <iostream> #include "include/types.h" #include "rgw_tag_s3.h" using namespace std; void RGWObjTagEntry_S3::decode_xml(XMLObj *obj) { RGWXMLDecoder::decode_xml("Key", ...
1,505
21.477612
70
cc
null
ceph-main/src/rgw/rgw_tag_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 <iostream> #include <include/types.h> #include <common/Formatter.h> #include <expat.h> #include "rgw_tag.h" #include "rgw_xml.h" class RGWObjTagEntry_S3 { ...
1,004
19.1
81
h
null
ceph-main/src/rgw/rgw_tar.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 <algorithm> #include <array> #include <cstring> #include <string_view> #include <tuple> #include <utility> #include <boost/optional.hpp> #include <boost/range/adaptor/reversed.hpp> namespac...
4,059
25.363636
78
h
null
ceph-main/src/rgw/rgw_token.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) 2016 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,512
23.227586
89
cc
null
ceph-main/src/rgw/rgw_token.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) 2016 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...
4,088
22.912281
84
h
null
ceph-main/src/rgw/rgw_tools.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 "common/errno.h" #include "rgw_tools.h" #define dout_subsys ceph_subsys_rgw #define dout_context g_ceph_context #define READ_CHUNK_LEN (512 * 1024) using namespace std; static std:...
2,678
20.432
98
cc
null
ceph-main/src/rgw/rgw_torrent.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_torrent.h" #include <ctime> #include <fmt/format.h> #include "common/split.h" #include "rgw_sal.h" #define ANNOUNCE "announce" #define ANNOUNCE_LIST "announce-list" #define COMMENT ...
5,066
25.668421
78
cc
null
ceph-main/src/rgw/rgw_torrent.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/ceph_crypto.h" #include "common/dout.h" #include "common/async/yield_context.h" #include "rgw_putobj.h" #include "rgw_sal_fwd.h" //control characters void bencode_dict(bufferlist& b...
1,639
26.79661
75
h
null
ceph-main/src/rgw/rgw_tracer.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <string> #include "rgw_tracer.h" namespace tracing { namespace rgw { tracing::Tracer tracer; } // namespace rgw } // namespace tracing
246
16.642857
70
cc
null
ceph-main/src/rgw/rgw_tracer.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "common/tracer.h" #include "rgw_common.h" namespace tracing { namespace rgw { const auto OP = "op"; const auto BUCKET_NAME = "bucket_name"; const auto USER_ID = "user_id"; const auto OBJECT_NAME = ...
912
25.085714
95
h
null
ceph-main/src/rgw/rgw_url.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include <string> #include <regex> namespace rgw { namespace { const auto USER_GROUP_IDX = 3; const auto PASSWORD_GROUP_IDX = 4; const auto HOST_GROUP_IDX = 5; const std::string schema_re = "([[:alpha:]]+:\\/\\...
1,452
28.06
111
cc
null
ceph-main/src/rgw/rgw_url.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <string> namespace rgw { // parse a URL of the form: http|https|amqp|amqps|kafka://[user:password@]<host>[:port] bool parse_url_authority(const std::string& url, std::string& host, std::string& user...
440
32.923077
110
h
null
ceph-main/src/rgw/rgw_usage.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 <map> #include "rgw_rados.h" #include "rgw_usage.h" #include "rgw_formats.h" #include "rgw_sal.h" using namespace std; static void dump_usage_categories_info(Formatter *formatter, cons...
5,637
31.77907
125
cc
null
ceph-main/src/rgw/rgw_usage.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 "common/Formatter.h" #include "common/dout.h" #include "rgw_formats.h" #include "rgw_user.h" #include "rgw_sal_fwd.h" class RGWUsage { public: static int...
897
27.967742
94
h
null
ceph-main/src/rgw/rgw_user.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include "rgw_sal_rados.h" #include "include/types.h" #include "rgw_user.h" // until everything is moved from rgw_common #include "rgw_common.h" #define dout_subsys ceph_subsys_rgw using namespace std; int rgw...
3,607
27.1875
111
cc
null
ceph-main/src/rgw/rgw_user_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...
3,596
21.622642
86
h
null
ceph-main/src/rgw/rgw_web_idp.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 web_idp { //WebToken contains some claims from the decoded token which are of interest to us. struct WebTokenClaims { //Subject of the token std::string sub; //Intende...
599
21.222222
83
h
null
ceph-main/src/rgw/rgw_website.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) 2015 Yehuda Sadeh <yehuda@redhat.com> * Copyright (C) 2015 Robin H. Johnson <robin.johnson@dreamhost.com> * * This is free software; you can red...
11,080
31.400585
118
cc
null
ceph-main/src/rgw/rgw_website.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) 2015 Yehuda Sadeh <yehuda@redhat.com> * Copyright (C) 2015 Robin H. Johnson <robin.johnson@dreamhost.com> * * This is free software; you can redi...
6,407
25.262295
76
h
null
ceph-main/src/rgw/rgw_worker.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,124
22.097826
91
h
null
ceph-main/src/rgw/rgw_xml.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 <expat.h> #include "include/types.h" #include "include/utime.h" #include "rgw_xml.h" using namespace std; XMLObjIter:: XMLObjIter() { } XMLObjI...
10,001
18.884692
94
cc
null
ceph-main/src/rgw/rgw_xml.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 <stdexcept> #include <string> #include <iosfwd> #include <include/types.h> #include <common/Formatter.h> class XMLObj; class RGWXMLParser; class XMLObjIter { public: typede...
10,985
28.532258
127
h
null
ceph-main/src/rgw/rgw_xml_enc.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) 2015 Yehuda Sadeh <yehuda@redhat.com> * Copyright (C) 2015 Robin H. Johnson <robin.johnson@dreamhost.com> * * This is free software; you can redi...
639
23.615385
70
cc
null
ceph-main/src/rgw/rgw_zone.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp #include <optional> #include "common/errno.h" #include "rgw_zone.h" #include "rgw_sal_config.h" #include "rgw_sync.h" #include "services/svc_zone.h" #define dout_context g_ceph_context #define dout_subsys ceph...
43,436
30.659621
135
cc
null
ceph-main/src/rgw/rgw_zone_features.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab ft=cpp /* N.B., this header defines fundamental serialized types. Do not * include files which can only be compiled in radosgw or OSD * contexts (e.g., rgw_sal.h, rgw_common.h) */ #pragma once #include <string> #incl...
1,293
25.958333
76
h
null
ceph-main/src/rgw/rgw_zone_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...
16,654
25.605431
117
h
null
ceph-main/src/rgw/rgwam.py
#!@Python3_EXECUTABLE@ # -*- mode:python -*- # vim: ts=4 sw=4 smarttab expandtab # # Processed in Makefile to add python #! line and version variable # # import subprocess import random import string import json import argparse import sys import socket import base64 import logging from urllib.parse import urlparse f...
8,004
32.215768
123
py
null
ceph-main/src/rgw/driver/d4n/d4n_datacache.cc
#include "d4n_datacache.h" #define dout_subsys ceph_subsys_rgw #define dout_context g_ceph_context /* Base metadata and data fields should remain consistent */ std::vector<std::string> baseFields { "mtime", "object_size", "accounted_size", "epoch", "version_id", "source_zone_short_id", "bucket_count", ...
11,770
22.973523
122
cc
null
ceph-main/src/rgw/driver/d4n/d4n_datacache.h
#ifndef CEPH_RGWD4NCACHE_H #define CEPH_RGWD4NCACHE_H #include "rgw_common.h" #include <cpp_redis/cpp_redis> #include <string> #include <iostream> class RGWD4NCache { public: CephContext *cct; RGWD4NCache() {} RGWD4NCache(std::string cacheHost, int cachePort):host(cacheHost), port(cachePort) {} vo...
1,308
30.926829
127
h
null
ceph-main/src/rgw/driver/d4n/d4n_directory.cc
#include "d4n_directory.h" #define dout_subsys ceph_subsys_rgw #define dout_context g_ceph_context int RGWBlockDirectory::findClient(cpp_redis::client *client) { if (client->is_connected()) return 0; if (host == "" || port == 0) { dout(10) << "RGW D4N Directory: D4N directory endpoint was not configured ...
4,354
23.194444
119
cc
null
ceph-main/src/rgw/driver/d4n/d4n_directory.h
#ifndef CEPH_RGWD4NDIRECTORY_H #define CEPH_RGWD4NDIRECTORY_H #include "rgw_common.h" #include <cpp_redis/cpp_redis> #include <string> #include <iostream> struct cache_obj { std::string bucket_name; /* s3 bucket name */ std::string obj_name; /* s3 obj name */ }; struct cache_block { cache_obj c_obj; uint64_t...
1,294
22.981481
116
h
null
ceph-main/src/rgw/driver/d4n/rgw_sal_d4n.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...
19,718
33.777778
185
cc
null
ceph-main/src/rgw/driver/d4n/rgw_sal_d4n.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...
7,876
38.385
136
h
null
ceph-main/src/rgw/driver/daos/README.md
# DAOS Standalone RADOS Gateway (RGW) on [DAOS](http://daos.io/) (Experimental) ## CMake Option Add below cmake option ```bash -DWITH_RADOSGW_DAOS=ON ``` ## Build ```bash cd build ninja [vstart] ``` ## Running Test cluster Edit ceph.conf to add below option ```conf [client] rgw backend ...
879
17.333333
83
md
null
ceph-main/src/rgw/driver/dbstore/README.md
# DBStore Standalone Rados Gateway (RGW) on DBStore (Experimental) ## CMake Option Add below cmake option (enabled by default) -DWITH_RADOSGW_DBSTORE=ON ## Build cd build ninja [vstart] ## Running Test cluster Edit ceph.conf to add below option [client] rgw backend store = dbstore ...
1,764
30.517857
239
md
null
ceph-main/src/rgw/driver/dbstore/dbstore_main.cc
#include <stdio.h> #include <sqlite3.h> #include <stdlib.h> #include <string.h> #include <pthread.h> #include "dbstore_mgr.h" #include <dbstore.h> #include <dbstore_log.h> using namespace std; using namespace rgw::store; using DB = rgw::store::DB; struct thr_args { DB *dbs; int thr_id; }; void* process(void *ar...
5,126
24.635
86
cc
null
ceph-main/src/rgw/driver/dbstore/dbstore_mgr.cc
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "dbstore_mgr.h" #include "common/dbstore_log.h" #include <filesystem> static constexpr auto dout_subsys = ceph_subsys_rgw; using namespace std; /* Given a tenant, find and return the DBStore handle. * If no...
3,136
21.248227
95
cc
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