summaryrefslogtreecommitdiffstats
path: root/src/mgr
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2020-03-25 03:48:57 +0100
committerGitHub <noreply@github.com>2020-03-25 03:48:57 +0100
commit258a5f28d1b0494000f999813162a75be3b69e14 (patch)
tree4f53fa726b85f5c0b0184c4faaebbb6f9f32fe5d /src/mgr
parentMerge pull request #34161 from tchaikov/wip-perf-test-on-bionic (diff)
parentmon: Build ceph-mon without using namespace declarations in headers (diff)
downloadceph-258a5f28d1b0494000f999813162a75be3b69e14.tar.xz
ceph-258a5f28d1b0494000f999813162a75be3b69e14.zip
Merge pull request #34106 from adamemerson/wip-namespace-mon
Make ceph-mon compile without top-level using namespace in headers Reviewed-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/mgr')
-rw-r--r--src/mgr/MgrCap.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mgr/MgrCap.cc b/src/mgr/MgrCap.cc
index ef1f3943973..555779d5764 100644
--- a/src/mgr/MgrCap.cc
+++ b/src/mgr/MgrCap.cc
@@ -44,7 +44,7 @@ static std::string maybe_quote_string(const std::string& str) {
#define dout_subsys ceph_subsys_mgr
-ostream& operator<<(ostream& out, const mgr_rwxa_t& p) {
+std::ostream& operator<<(std::ostream& out, const mgr_rwxa_t& p) {
if (p == MGR_CAP_ANY)
return out << "*";
@@ -57,7 +57,7 @@ ostream& operator<<(ostream& out, const mgr_rwxa_t& p) {
return out;
}
-ostream& operator<<(ostream& out, const MgrCapGrantConstraint& c) {
+std::ostream& operator<<(std::ostream& out, const MgrCapGrantConstraint& c) {
switch (c.match_type) {
case MgrCapGrantConstraint::MATCH_TYPE_EQUAL:
out << "=";
@@ -75,7 +75,7 @@ ostream& operator<<(ostream& out, const MgrCapGrantConstraint& c) {
return out;
}
-ostream& operator<<(ostream& out, const MgrCapGrant& m) {
+std::ostream& operator<<(std::ostream& out, const MgrCapGrant& m) {
if (!m.profile.empty()) {
out << "profile " << maybe_quote_string(m.profile);
} else {
@@ -280,7 +280,7 @@ mgr_rwxa_t MgrCapGrant::get_allowed(
return allow;
}
-ostream& operator<<(ostream&out, const MgrCap& m) {
+std::ostream& operator<<(std::ostream&out, const MgrCap& m) {
bool first = true;
for (auto& grant : m.grants) {
if (!first) {
@@ -365,14 +365,14 @@ bool MgrCap::is_capable(
return false;
}
-void MgrCap::encode(bufferlist& bl) const {
+void MgrCap::encode(ceph::buffer::list& bl) const {
// remain backwards compatible w/ MgrCap
ENCODE_START(4, 4, bl);
encode(text, bl);
ENCODE_FINISH(bl);
}
-void MgrCap::decode(bufferlist::const_iterator& bl) {
+void MgrCap::decode(ceph::buffer::list::const_iterator& bl) {
// remain backwards compatible w/ MgrCap
std::string s;
DECODE_START(4, bl);
@@ -381,11 +381,11 @@ void MgrCap::decode(bufferlist::const_iterator& bl) {
parse(s, NULL);
}
-void MgrCap::dump(Formatter *f) const {
+void MgrCap::dump(ceph::Formatter *f) const {
f->dump_string("text", text);
}
-void MgrCap::generate_test_instances(list<MgrCap*>& ls) {
+void MgrCap::generate_test_instances(std::list<MgrCap*>& ls) {
ls.push_back(new MgrCap);
ls.push_back(new MgrCap);
ls.back()->parse("allow *");
@@ -462,7 +462,7 @@ struct MgrCapParser : qi::grammar<Iterator, MgrCap()> {
>> qi::attr(std::string())
>> qi::attr(std::string())
>> qi::attr(std::string())
- >> qi::attr(map<std::string, MgrCapGrantConstraint>())
+ >> qi::attr(std::map<std::string, MgrCapGrantConstraint>())
>> spaces >> rwxa
>> -(spaces >> lit("network") >> spaces >> network_str);
@@ -537,7 +537,7 @@ struct MgrCapParser : qi::grammar<Iterator, MgrCap()> {
qi::rule<Iterator, MgrCap()> mgrcap;
};
-bool MgrCap::parse(const std::string& str, ostream *err) {
+bool MgrCap::parse(const std::string& str, std::ostream *err) {
auto iter = str.begin();
auto end = str.end();