summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Just <sam.just@inktank.com>2013-06-14 10:47:27 -0700
committerSamuel Just <sam.just@inktank.com>2013-06-17 14:50:53 -0700
commitc6dd60db8c9958561369b3fb6b05763fbcbda0d4 (patch)
tree6fac04675fd4261e2df388f5e76d80bf80904745
parent2ad319be784edf1f79f9f76f85ad66ba66233fc0 (diff)
downloadceph-c6dd60db8c9958561369b3fb6b05763fbcbda0d4.tar.gz
PGLog: rename dirty() to is_dirty()
Signed-off-by: Samuel Just <sam.just@inktank.com>
-rw-r--r--src/osd/PGLog.cc2
-rw-r--r--src/osd/PGLog.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/osd/PGLog.cc b/src/osd/PGLog.cc
index 53aee37cb6a..6a29a1d3955 100644
--- a/src/osd/PGLog.cc
+++ b/src/osd/PGLog.cc
@@ -534,7 +534,7 @@ void PGLog::merge_log(ObjectStore::Transaction& t,
void PGLog::write_log(
ObjectStore::Transaction& t, const hobject_t &log_oid)
{
- if (dirty()) {
+ if (is_dirty()) {
dout(10) << "write_log with: "
<< "dirty_to: " << dirty_to
<< ", dirty_from: " << dirty_from
diff --git a/src/osd/PGLog.h b/src/osd/PGLog.h
index e8f86ce56f9..bc40e23709b 100644
--- a/src/osd/PGLog.h
+++ b/src/osd/PGLog.h
@@ -160,7 +160,7 @@ protected:
eversion_t dirty_from;
bool dirty_divergent_priors;
- bool dirty() const {
+ bool is_dirty() const {
return !touched_log ||
(dirty_to != eversion_t()) ||
(dirty_from != eversion_t::max()) ||