Skip to contentSkip to conversation

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

PATCH New Danny Al-Gaaf 1 participant 1 message Jan 9, 2013

lore
Share & tools
lore
#0 lore raw

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

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.

---
 src/osd/ReplicatedPG.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/osd/ReplicatedPG.cc +1 -1
index e8a68fe..1645041 100644
@@ -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;
       }
 
Signature · 1 line
1.8.1