mirror of
https://github.com/ceph/ceph
synced 2024-12-29 15:03:33 +00:00
PG,ReplicatedPG: move intrusive_ptr declarations to top
Signed-off-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
parent
220c65127d
commit
b021036bde
11
src/osd/PG.h
11
src/osd/PG.h
@ -64,6 +64,12 @@ class MOSDPGScan;
|
||||
class MOSDPGBackfill;
|
||||
class MOSDPGInfo;
|
||||
|
||||
class PG;
|
||||
|
||||
void intrusive_ptr_add_ref(PG *pg);
|
||||
void intrusive_ptr_release(PG *pg);
|
||||
|
||||
typedef boost::intrusive_ptr<PG> PGRef;
|
||||
|
||||
struct PGRecoveryStats {
|
||||
struct per_state_info {
|
||||
@ -1967,9 +1973,4 @@ WRITE_CLASS_ENCODER(PG::OndiskLog)
|
||||
|
||||
ostream& operator<<(ostream& out, const PG& pg);
|
||||
|
||||
void intrusive_ptr_add_ref(PG *pg);
|
||||
void intrusive_ptr_release(PG *pg);
|
||||
|
||||
typedef boost::intrusive_ptr<PG> PGRef;
|
||||
|
||||
#endif
|
||||
|
@ -28,6 +28,10 @@
|
||||
#include "messages/MOSDSubOp.h"
|
||||
class MOSDSubOpReply;
|
||||
|
||||
class ReplicatedPG;
|
||||
void intrusive_ptr_add_ref(ReplicatedPG *pg);
|
||||
void intrusive_ptr_release(ReplicatedPG *pg);
|
||||
typedef boost::intrusive_ptr<ReplicatedPG> ReplicatedPGRef;
|
||||
class PGLSFilter {
|
||||
protected:
|
||||
string xattr;
|
||||
@ -1021,9 +1025,4 @@ inline ostream& operator<<(ostream& out, ReplicatedPG::AccessMode& mode)
|
||||
return out;
|
||||
}
|
||||
|
||||
void intrusive_ptr_add_ref(ReplicatedPG *pg);
|
||||
void intrusive_ptr_release(ReplicatedPG *pg);
|
||||
|
||||
typedef boost::intrusive_ptr<ReplicatedPG> ReplicatedPGRef;
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user