PG,ReplicatedPG: move intrusive_ptr declarations to top

Signed-off-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
Samuel Just 2013-04-18 17:41:18 -07:00
parent 220c65127d
commit b021036bde
2 changed files with 10 additions and 10 deletions

View File

@ -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

View File

@ -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