summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Just <sam.just@inktank.com>2013-06-13 13:49:17 -0700
committerSamuel Just <sam.just@inktank.com>2013-06-17 14:50:53 -0700
commitb16fdf23e5325623874ee1a02e134f577c5a7dcd (patch)
treeb75562ed85737aa0b6355c90d9cf136755cc8fde
parentf35bc0259100c07aa8dcc8c882b0d69ed6a48648 (diff)
downloadceph-b16fdf23e5325623874ee1a02e134f577c5a7dcd.tar.gz
PGLog: replace dirty_log with mark_dirty_*
Signed-off-by: Samuel Just <sam.just@inktank.com>
-rw-r--r--src/osd/PGLog.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osd/PGLog.cc b/src/osd/PGLog.cc
index c7d8d0ea406..c174221013a 100644
--- a/src/osd/PGLog.cc
+++ b/src/osd/PGLog.cc
@@ -329,7 +329,6 @@ bool PGLog::merge_old_entry(ObjectStore::Transaction& t, const pg_log_entry_t& o
<< oe.prior_version << dendl;
if (oe.prior_version > eversion_t()) {
add_divergent_prior(oe.prior_version, oe.soid);
- dirty_log = true;
missing.revise_need(oe.soid, oe.prior_version);
} else if (missing.is_missing(oe.soid)) {
missing.rm(oe.soid, missing.missing[oe.soid].need);
@@ -362,6 +361,7 @@ void PGLog::rewind_divergent_log(ObjectStore::Transaction& t, eversion_t newhead
divergent.swap(log.log);
break;
}
+ mark_dirty_from(p->version);
--p;
if (p->version == newhead) {
++p;
@@ -383,7 +383,6 @@ void PGLog::rewind_divergent_log(ObjectStore::Transaction& t, eversion_t newhead
dirty_info = true;
dirty_big_info = true;
- dirty_log = true;
}
void PGLog::merge_log(ObjectStore::Transaction& t,
@@ -414,6 +413,7 @@ void PGLog::merge_log(ObjectStore::Transaction& t,
// missing set, as that should already be consistent with our
// current log.
if (olog.tail < log.tail) {
+ mark_dirty_to(log.log.begin()->version); // last clean entry
dout(10) << "merge_log extending tail to " << olog.tail << dendl;
list<pg_log_entry_t>::iterator from = olog.log.begin();
list<pg_log_entry_t>::iterator to;
@@ -467,6 +467,7 @@ void PGLog::merge_log(ObjectStore::Transaction& t,
break;
}
}
+ mark_dirty_from(lower_bound);
// index, update missing, delete deleted
for (list<pg_log_entry_t>::iterator p = from; p != to; ++p) {
@@ -522,7 +523,6 @@ void PGLog::merge_log(ObjectStore::Transaction& t,
if (changed) {
dirty_info = true;
dirty_big_info = true;
- dirty_log = true;
}
}