summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()) ||