repo
stringlengths
1
152
file
stringlengths
14
221
code
stringlengths
501
25k
file_length
int64
501
25k
avg_line_length
float64
20
99.5
max_line_length
int64
21
134
extension_type
stringclasses
2 values
null
ceph-main/src/messages/MOSDBackoff.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) 2017 Red Hat * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2....
2,295
25.390805
79
h
null
ceph-main/src/messages/MOSDBeacon.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "PaxosServiceMessage.h" class MOSDBeacon : public PaxosServiceMessage { private: static constexpr int HEAD_VERSION = 3; static constexpr int COMPAT_VERSION = 1; public: std::vector<pg_t> pgs;...
1,954
29.076923
74
h
null
ceph-main/src/messages/MOSDBoot.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
2,929
28.59596
79
h
null
ceph-main/src/messages/MOSDECSubOpRead.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) 2013 Inktank Storage, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
2,005
22.6
79
h
null
ceph-main/src/messages/MOSDECSubOpReadReply.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) 2013 Inktank Storage, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
2,036
22.964706
84
h
null
ceph-main/src/messages/MOSDECSubOpWrite.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) 2013 Inktank Storage, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
2,247
22.914894
80
h
null
ceph-main/src/messages/MOSDECSubOpWriteReply.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) 2013 Inktank Storage, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
2,042
23.035294
85
h
null
ceph-main/src/messages/MOSDFailure.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
3,391
28.495652
76
h
null
ceph-main/src/messages/MOSDFastDispatchOp.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_MOSDFASTDISPATCHOP_H #define CEPH_MOSDFASTDISPATCHOP_H #include "msg/Message.h" #include "osd/osd_types.h" class MOSDFastDispatchOp : public Message { public: MOSDFastDispatchOp(int t, int version, int co...
548
22.869565
70
h
null
ceph-main/src/messages/MOSDForceRecovery.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) 2017 OVH * * 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, a...
3,127
26.2
88
h
null
ceph-main/src/messages/MOSDFull.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_MOSDFULL_H #define CEPH_MOSDFULL_H #include "messages/PaxosServiceMessage.h" #include "osd/OSDMap.h" // tell the mon to update the full/nearfull bits. note that in the // future this message could be gener...
1,419
24.818182
80
h
null
ceph-main/src/messages/MOSDMap.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
5,746
31.106145
81
h
null
ceph-main/src/messages/MOSDMarkMeDead.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "messages/PaxosServiceMessage.h" class MOSDMarkMeDead final : public PaxosServiceMessage { private: static constexpr int HEAD_VERSION = 1; static constexpr int COMPAT_VERSION = 1; public: u...
1,600
24.015625
78
h
null
ceph-main/src/messages/MOSDMarkMeDown.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) 2013 Inktank Storage, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
2,937
28.979592
78
h
null
ceph-main/src/messages/MOSDOp.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
16,164
25.37031
82
h
null
ceph-main/src/messages/MOSDOpReply.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
10,058
27.415254
95
h
null
ceph-main/src/messages/MOSDPGBackfill.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
2,955
24.050847
78
h
null
ceph-main/src/messages/MOSDPGBackfillRemove.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) 2017 Sage Weil <sage@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public ...
2,051
24.333333
79
h
null
ceph-main/src/messages/MOSDPGCreate2.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "msg/Message.h" #include "osd/osd_types.h" /* * PGCreate2 - instruct an OSD to create some pgs */ class MOSDPGCreate2 final : public Message { public: static constexpr int HEAD_VERSION = 2; ...
1,418
23.894737
70
h
null
ceph-main/src/messages/MOSDPGCreated.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "osd/osd_types.h" #include "messages/PaxosServiceMessage.h" class MOSDPGCreated : public PaxosServiceMessage { public: pg_t pgid; MOSDPGCreated() : PaxosServiceMessage{MSG_OSD_PG_CREATED, 0...
981
24.842105
74
h
null
ceph-main/src/messages/MOSDPGInfo.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
1,980
22.305882
71
h
null
ceph-main/src/messages/MOSDPGInfo2.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "messages/MOSDPeeringOp.h" #include "osd/PGPeeringEvent.h" class MOSDPGInfo2 final : public MOSDPeeringOp { private: static constexpr int HEAD_VERSION = 1; static constexpr int COMPAT_VERSION =...
2,246
21.69697
70
h
null
ceph-main/src/messages/MOSDPGLease.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "msg/Message.h" #include "osd/osd_types.h" class MOSDPGLease final : public MOSDPeeringOp { private: static constexpr int HEAD_VERSION = 1; static constexpr int COMPAT_VERSION = 1; epoch_t e...
1,589
22.043478
72
h
null
ceph-main/src/messages/MOSDPGLeaseAck.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "msg/Message.h" #include "osd/osd_types.h" class MOSDPGLeaseAck final : public MOSDPeeringOp { private: static constexpr int HEAD_VERSION = 1; static constexpr int COMPAT_VERSION = 1; epoch_...
1,659
23.057971
76
h
null
ceph-main/src/messages/MOSDPGLog.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
3,482
25.587786
77
h
null
ceph-main/src/messages/MOSDPGNotify.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
2,294
23.945652
71
h
null
ceph-main/src/messages/MOSDPGNotify2.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "messages/MOSDPeeringOp.h" #include "osd/PGPeeringEvent.h" class MOSDPGNotify2 final : public MOSDPeeringOp { private: static constexpr int HEAD_VERSION = 1; static constexpr int COMPAT_VERSION...
1,949
20.666667
70
h
null
ceph-main/src/messages/MOSDPGPull.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) 2013 Inktank Storage, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
2,426
21.682243
74
h
null
ceph-main/src/messages/MOSDPGPush.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) 2013 Inktank Storage, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
2,503
21.159292
74
h
null
ceph-main/src/messages/MOSDPGPushReply.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) 2013 Inktank Storage, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * Lice...
2,197
22.136842
79
h
null
ceph-main/src/messages/MOSDPGQuery.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
2,012
23.253012
72
h
null
ceph-main/src/messages/MOSDPGQuery2.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "messages/MOSDPeeringOp.h" #include "osd/PGPeeringEvent.h" class MOSDPGQuery2 final : public MOSDPeeringOp { private: static constexpr int HEAD_VERSION = 1; static constexpr int COMPAT_VERSION ...
1,761
21.303797
70
h
null
ceph-main/src/messages/MOSDPGReadyToMerge.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once class MOSDPGReadyToMerge : public PaxosServiceMessage { public: pg_t pgid; eversion_t source_version, target_version; epoch_t last_epoch_started = 0; epoch_t last_epoch_clean = 0; bool ready = true...
1,812
28.241935
85
h
null
ceph-main/src/messages/MOSDPGRecoveryDelete.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_MOSDPGRECOVERYDELETE_H #define CEPH_MOSDPGRECOVERYDELETE_H #include "MOSDFastDispatchOp.h" /* * instruct non-primary to remove some objects during recovery */ class MOSDPGRecoveryDelete final : public MO...
2,226
22.442105
80
h
null
ceph-main/src/messages/MOSDPGRecoveryDeleteReply.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef MOSDRECOVERYDELETEREPLY_H #define MOSDRECOVERYDELETEREPLY_H #include "MOSDFastDispatchOp.h" class MOSDPGRecoveryDeleteReply : public MOSDFastDispatchOp { public: static constexpr int HEAD_VERSION = 2; static...
1,719
24.294118
88
h
null
ceph-main/src/messages/MOSDPGRemove.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
1,780
23.736111
71
h
null
ceph-main/src/messages/MOSDPGScan.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
2,953
24.465517
74
h
null
ceph-main/src/messages/MOSDPGTemp.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
1,737
23.828571
83
h
null
ceph-main/src/messages/MOSDPGTrim.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
2,112
24.457831
80
h
null
ceph-main/src/messages/MOSDPGUpdateLogMissing.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
3,400
26.208
82
h
null
ceph-main/src/messages/MOSDPGUpdateLogMissingReply.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
3,067
25.448276
87
h
null
ceph-main/src/messages/MOSDPeeringOp.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "msg/Message.h" #include "osd/osd_types.h" class PGPeeringEvent; class MOSDPeeringOp : public Message { public: MOSDPeeringOp(int t, int version, int compat_version) : Message{t, version, co...
1,080
25.365854
71
h
null
ceph-main/src/messages/MOSDPing.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
4,653
26.538462
78
h
null
ceph-main/src/messages/MOSDRepOp.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
5,187
25.335025
93
h
null
ceph-main/src/messages/MOSDRepOpReply.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
4,049
24.15528
80
h
null
ceph-main/src/messages/MOSDRepScrub.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
3,918
26.405594
85
h
null
ceph-main/src/messages/MOSDRepScrubMap.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) 2017 Sage Weil <sage@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public ...
2,196
24.847059
79
h
null
ceph-main/src/messages/MOSDScrub2.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "msg/Message.h" /* * instruct an OSD to scrub some or all pg(s) */ class MOSDScrub2 final : public Message { public: static constexpr int HEAD_VERSION = 1; static constexpr int COMPAT_VERSIO...
1,559
24.16129
83
h
null
ceph-main/src/messages/MOSDScrubReserve.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
2,279
21.8
78
h
null
ceph-main/src/messages/MPGStats.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
2,087
25.769231
99
h
null
ceph-main/src/messages/MPGStatsAck.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
1,277
24.56
80
h
null
ceph-main/src/messages/MPing.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
791
22.294118
71
h
null
ceph-main/src/messages/MPoolOp.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
2,484
24.10101
83
h
null
ceph-main/src/messages/MPoolOpReply.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
2,209
24.697674
75
h
null
ceph-main/src/messages/MRecoveryReserve.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
3,228
23.097015
76
h
null
ceph-main/src/messages/MRemoveSnaps.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
1,595
26.050847
76
h
null
ceph-main/src/messages/MRoute.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
2,273
23.989011
71
h
null
ceph-main/src/messages/MServiceMap.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include "msg/Message.h" #include "mgr/ServiceMap.h" class MServiceMap final : public Message { public: ServiceMap service_map; MServiceMap() : Message{MSG_SERVICE_MAP} { } explicit MServiceMap(const...
1,034
24.875
75
h
null
ceph-main/src/messages/MStatfs.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
1,937
25.547945
86
h
null
ceph-main/src/messages/MStatfsReply.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
1,312
25.26
76
h
null
ceph-main/src/messages/MTimeCheck.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) 2012 Inktank, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License ver...
2,211
22.784946
74
h
null
ceph-main/src/messages/MTimeCheck2.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) 2012 Inktank, Inc. * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License vers...
2,212
23.318681
75
h
null
ceph-main/src/messages/MWatchNotify.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
2,728
26.565657
97
h
null
ceph-main/src/messages/PaxosServiceMessage.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- #ifndef CEPH_PAXOSSERVICEMESSAGE_H #define CEPH_PAXOSSERVICEMESSAGE_H #include "msg/Message.h" #include "mon/Session.h" class PaxosServiceMessage : public Message { public: version_t version; __s16 deprecated_session_mon; uint64_t deprecate...
1,661
26.7
89
h
null
ceph-main/src/mgr/ActivePyModule.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) 2016 John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
2,802
23.373913
82
h
null
ceph-main/src/mgr/ActivePyModules.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) 2014 John Spray <john.spray@inktank.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
7,526
31.029787
89
h
null
ceph-main/src/mgr/ClusterState.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) 2014 John Spray <john.spray@inktank.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
4,480
26.323171
97
h
null
ceph-main/src/mgr/DaemonHealthMetric.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <cstdint> #include <ostream> #include "include/denc.h" enum class daemon_metric : uint8_t { SLOW_OPS, PENDING_CREATING_PGS, NONE, }; static inline const char *daemon_metric_name(daemon_metri...
1,782
20.481928
83
h
null
ceph-main/src/mgr/DaemonHealthMetricCollector.h
#pragma once #include <memory> #include <string> #include "DaemonHealthMetric.h" #include "DaemonKey.h" #include "mon/health_check.h" class DaemonHealthMetricCollector { public: static std::unique_ptr<DaemonHealthMetricCollector> create(daemon_metric m); void update(const DaemonKey& daemon, const DaemonHealthMet...
933
27.30303
86
h
null
ceph-main/src/mgr/DaemonKey.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <ostream> #include <string> #include <utility> // Unique reference to a daemon within a cluster struct DaemonKey { std::string type; // service type, like "osd", "mon" std::string name; // serv...
612
23.52
70
h
null
ceph-main/src/mgr/DaemonServer.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) 2016 John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
9,430
28.750789
86
h
null
ceph-main/src/mgr/DaemonState.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) 2016 John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
10,143
26.342318
83
h
null
ceph-main/src/mgr/Gil.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) 2017 SUSE LLC * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2...
2,834
23.652174
76
h
null
ceph-main/src/mgr/MDSPerfMetricCollector.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_MGR_MDS_PERF_COLLECTOR_H #define CEPH_MGR_MDS_PERF_COLLECTOR_H #include "mgr/MetricCollector.h" #include "mgr/MDSPerfMetricTypes.h" // MDS performance query class class MDSPerfMetricCollector : public Met...
838
27.931034
84
h
null
ceph-main/src/mgr/MDSPerfMetricTypes.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_MGR_MDS_PERF_METRIC_TYPES_H #define CEPH_MGR_MDS_PERF_METRIC_TYPES_H #include <regex> #include <vector> #include <iostream> #include "include/denc.h" #include "include/stringify.h" #include "mds/mdstypes.h...
10,607
27.826087
97
h
null
ceph-main/src/mgr/MetricCollector.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_MGR_METRIC_COLLECTOR_H #define CEPH_MGR_METRIC_COLLECTOR_H #include <map> #include <set> #include <tuple> #include <vector> #include <utility> #include <algorithm> #include "common/ceph_mutex.h" #include "m...
2,367
26.534884
97
h
null
ceph-main/src/mgr/MetricTypes.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_MGR_METRIC_TYPES_H #define CEPH_MGR_METRIC_TYPES_H #include <boost/variant.hpp> #include "include/denc.h" #include "include/ceph_features.h" #include "mgr/OSDPerfMetricTypes.h" #include "mgr/MDSPerfMetricTyp...
6,982
24.118705
94
h
null
ceph-main/src/mgr/Mgr.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) 2014 John Spray <john.spray@inktank.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
3,325
21.937931
72
h
null
ceph-main/src/mgr/MgrCap.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef CEPH_MGRCAP_H #define CEPH_MGRCAP_H #include <iosfwd> #include "include/common_fwd.h" #include "include/types.h" #include "common/entity_name.h" static const __u8 MGR_CAP_R = (1 << 1); // read static c...
6,053
28.970297
97
h
null
ceph-main/src/mgr/MgrClient.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) 2016 John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
5,703
25.407407
74
h
null
ceph-main/src/mgr/MgrCommands.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab /* no guard; may be included multiple times */ // see MonCommands.h COMMAND("pg stat", "show placement group status.", "pg", "r") COMMAND("pg getmap", "get binary pg map to -o/stdout", "pg", "r") COMMAND("pg dump " ...
8,339
38.339623
111
h
null
ceph-main/src/mgr/MgrStandby.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) 2016 John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
2,111
22.466667
70
h
null
ceph-main/src/mgr/OSDPerfMetricCollector.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef OSD_PERF_METRIC_COLLECTOR_H_ #define OSD_PERF_METRIC_COLLECTOR_H_ #include "mgr/MetricCollector.h" #include "mgr/OSDPerfMetricTypes.h" /** * OSD performance query class. */ class OSDPerfMetricCollector : pub...
670
26.958333
84
h
null
ceph-main/src/mgr/OSDPerfMetricTypes.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #ifndef OSD_PERF_METRIC_H_ #define OSD_PERF_METRIC_H_ #include "include/denc.h" #include "include/stringify.h" #include "mgr/Types.h" #include <regex> typedef std::vector<std::string> OSDPerfMetricSubKey; // array of ...
9,625
25.66482
88
h
null
ceph-main/src/mgr/PyFormatter.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) 2015 Red Hat Inc * * Author: John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms o...
4,101
24.012195
112
h
null
ceph-main/src/mgr/PyModule.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) 2017 John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
4,863
24.072165
75
h
null
ceph-main/src/mgr/PyModuleRegistry.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) 2017 John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
6,354
25.045082
83
h
null
ceph-main/src/mgr/ServiceMap.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <string> #include <map> #include <list> #include <sstream> #include "include/utime.h" #include "include/buffer.h" #include "msg/msg_types.h" namespace ceph { class Formatter; } struct ServiceMa...
2,838
27.969388
75
h
null
ceph-main/src/mgr/StandbyPyModules.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) 2016 John Spray <john.spray@redhat.com> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General P...
2,931
20.880597
82
h
null
ceph-main/src/mgr/TTLCache.h
#pragma once #include <atomic> #include <chrono> #include <functional> #include <map> #include <memory> #include <string> #include <vector> #include "PyUtil.h" template <class Key, class Value> class Cache { private: std::atomic<uint64_t> hits, misses; protected: unsigned int capacity; Cache(unsigned int si...
3,154
24.650407
80
h
null
ceph-main/src/mon/AuthMonitor.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
8,296
29.72963
93
h
null
ceph-main/src/mon/CommandHandler.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) 2019 Red Hat Ltd * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versio...
823
21.888889
71
h
null
ceph-main/src/mon/ConfigMap.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 <optional> #include <ostream> #include <string> #include "include/utime.h" #include "common/options.h" #include "common/entity_name.h" class CrushWrapper; // the precedence is thus...
3,994
24.774194
94
h
null
ceph-main/src/mon/ConfigMonitor.h
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #pragma once #include <optional> #include "ConfigMap.h" #include "mon/PaxosService.h" class MonSession; class ConfigMonitor : public PaxosService { version_t version = 0; ConfigMap config_map; std::map<std::stri...
1,565
25.542373
74
h
null
ceph-main/src/mon/ConnectionTracker.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) 2019 Red Hat * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License version 2...
6,799
32.009709
81
h
null
ceph-main/src/mon/CreatingPGs.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 <set> #include <vector> #include "include/encoding.h" #include "include/utime.h" #include "osd/osd_types.h" struct creating_pgs_t { epoch_t last_scan_epoch = 0; struct pg_cre...
6,662
27.353191
79
h
null
ceph-main/src/mon/ElectionLogic.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
16,840
35.531453
91
h
null
ceph-main/src/mon/Elector.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) 2004-2006 Sage Weil <sage@newdream.net> * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General ...
12,433
29.550369
88
h
null
ceph-main/src/mon/FSCommands.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) 2017 Red Hat Ltd * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versio...
2,100
22.087912
82
h
null
ceph-main/src/mon/HealthMonitor.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) 2013 Inktank, Inc * * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License versi...
2,202
27.986842
76
h