diff mbox

osd/ReplicatedPG.cc: fix errors in _scrub()

Message ID 1357766567-26286-1-git-send-email-danny.al-gaaf@bisect.de (mailing list archive)
State New, archived
Headers show

Commit Message

Danny Al-Gaaf Jan. 9, 2013, 9:22 p.m. UTC
Fix build error introduced with 5b12b514b047a8a46cc5549bd94b398289b9b5f6:

osd/ReplicatedPG.cc: In member function 'virtual void ReplicatedPG::_scrub(ScrubMap&)':
osd/ReplicatedPG.cc:7116:4: error: 'errors' was not declared in this scope

Increment scrubber.errors instead of errors.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
---
 src/osd/ReplicatedPG.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc
index e8a68fe..1645041 100644
--- a/src/osd/ReplicatedPG.cc
+++ b/src/osd/ReplicatedPG.cc
@@ -7113,7 +7113,7 @@  void ReplicatedPG::_scrub(ScrubMap& scrubmap)
       if (head == hobject_t()) {
 	osd->clog.error() << mode << " " << info.pgid << " " << soid
 			  << " found clone without head";
-	++errors;
+	++scrubber.errors;
 	continue;
       }