Skip to content

Commit ab5005f

Browse files
committed
osd: Use #pragma once rather than ifdefs to control inclusion.
Some EC headers were already using pragma once. This change makes it more convienent to add new classes with th old names. Signed-off-by: Alex Ainscow <[email protected]>
1 parent d9eda19 commit ab5005f

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/osd/ECBackendL.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
*
1313
*/
1414

15-
#ifndef ECBACKEND_H
16-
#define ECBACKEND_H
15+
#pragma once
1716

1817
#include <boost/intrusive/set.hpp>
1918
#include <boost/intrusive/list.hpp>
@@ -443,4 +442,3 @@ class ECBackendL : public PGBackend, public ECCommonL {
443442
};
444443
ostream &operator<<(ostream &lhs, const ECBackendL::RMWPipeline::pipeline_state_t &rhs);
445444

446-
#endif

src/osd/ECTransactionL.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
*
1313
*/
1414

15-
#ifndef ECTRANSACTION_H
16-
#define ECTRANSACTION_H
15+
#pragma once
1716

1817
#include "ECUtilL.h"
1918
#include "ECExtentCacheL.h"
@@ -191,5 +190,3 @@ namespace ECTransactionL {
191190
DoutPrefixProvider *dpp,
192191
const ceph_release_t require_osd_release = ceph_release_t::unknown);
193192
};
194-
195-
#endif

0 commit comments

Comments
 (0)