summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Just <sam.just@inktank.com>2013-04-17 13:50:52 -0700
committerSamuel Just <sam.just@inktank.com>2013-04-19 11:00:21 -0700
commit8bd89e12f86e64e285d7f2d88716267c41684311 (patch)
tree605a17986e64edcfabdccc86a41a76b088cde58d
parentce6477536700e12037a3b7eee6bb505795a9a479 (diff)
downloadceph-8bd89e12f86e64e285d7f2d88716267c41684311.tar.gz
PG: use PGRef in C_PG_ActivateCommitted
Signed-off-by: Samuel Just <sam.just@inktank.com>
-rw-r--r--src/osd/PG.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/osd/PG.cc b/src/osd/PG.cc
index 3a0aa23c37d..bd14f8eef7c 100644
--- a/src/osd/PG.cc
+++ b/src/osd/PG.cc
@@ -1381,7 +1381,7 @@ void PG::build_might_have_unfound()
}
struct C_PG_ActivateCommitted : public Context {
- PG *pg;
+ PGRef pg;
epoch_t epoch;
C_PG_ActivateCommitted(PG *p, epoch_t e)
: pg(p), epoch(e) {}
@@ -1452,7 +1452,6 @@ void PG::activate(ObjectStore::Transaction& t,
clean_up_local(t);
// find out when we commit
- get(); // for callback
tfin.push_back(new C_PG_ActivateCommitted(this, query_epoch));
// initialize snap_trimq
@@ -1803,7 +1802,6 @@ void PG::_activate_committed(epoch_t e)
}
unlock();
- put();
}
/*