From 5ffb3ef4c25d9bc19460803a2924f8dbe034d50c Mon Sep 17 00:00:00 2001 From: David Zafman Date: Thu, 4 Apr 2013 15:51:40 -0700 Subject: [PATCH] filestore, osd: Fixes to comform to programming guidelines Signed-off-by: David Zafman --- src/os/FileStore.cc | 3 ++- src/osd/PG.cc | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index 5170412183e9..aa6416453e0d 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -198,7 +198,8 @@ int FileStore::lfn_stat(coll_t cid, const hobject_t& oid, struct stat *buf) int FileStore::lfn_open(coll_t cid, const hobject_t& oid, int flags, mode_t mode, IndexedPath *path, - Index *index) { + Index *index) +{ Index index2; IndexedPath path2; if (!path) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index f21882966dab..095e20738978 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -39,7 +39,8 @@ #define dout_subsys ceph_subsys_osd #undef dout_prefix #define dout_prefix _prefix(_dout, this) -static ostream& _prefix(std::ostream *_dout, const PG *pg) { +static ostream& _prefix(std::ostream *_dout, const PG *pg) +{ return *_dout << pg->gen_prefix(); } @@ -3383,7 +3384,8 @@ void PG::scrub_unreserve_replicas() } } -void PG::_scan_snaps(ScrubMap &smap) { +void PG::_scan_snaps(ScrubMap &smap) +{ for (map::iterator i = smap.objects.begin(); i != smap.objects.end(); ++i) { -- 2.47.3