Skip to content

Commit 761b593

Browse files
author
michael stack
committed
Formatting
1 parent 5c53ce8 commit 761b593

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

fdbserver/workloads/RestoreValidation.actor.cpp

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -221,31 +221,31 @@ struct RestoreValidationWorkload : TestWorkload {
221221
throw;
222222
}
223223

224-
// Filter for our audit ID
225-
state bool foundOurAudit = false;
226-
state bool allComplete = true;
227-
state bool anyError = false;
228-
229-
for (const auto& auditState : auditStates) {
230-
if (auditState.id == auditId) {
231-
foundOurAudit = true;
232-
233-
if (auditState.getPhase() == AuditPhase::Running) {
234-
allComplete = false;
235-
} else if (auditState.getPhase() == AuditPhase::Error ||
236-
auditState.getPhase() == AuditPhase::Failed) {
237-
anyError = true;
238-
finalPhase = auditState.getPhase();
239-
if (!auditState.error.empty()) {
240-
errorMessage = auditState.error;
241-
} else {
242-
errorMessage = "Unknown error";
224+
// Filter for our audit ID
225+
state bool foundOurAudit = false;
226+
state bool allComplete = true;
227+
state bool anyError = false;
228+
229+
for (const auto& auditState : auditStates) {
230+
if (auditState.id == auditId) {
231+
foundOurAudit = true;
232+
233+
if (auditState.getPhase() == AuditPhase::Running) {
234+
allComplete = false;
235+
} else if (auditState.getPhase() == AuditPhase::Error ||
236+
auditState.getPhase() == AuditPhase::Failed) {
237+
anyError = true;
238+
finalPhase = auditState.getPhase();
239+
if (!auditState.error.empty()) {
240+
errorMessage = auditState.error;
241+
} else {
242+
errorMessage = "Unknown error";
243+
}
244+
} else if (auditState.getPhase() == AuditPhase::Complete) {
245+
finalPhase = AuditPhase::Complete;
243246
}
244-
} else if (auditState.getPhase() == AuditPhase::Complete) {
245-
finalPhase = AuditPhase::Complete;
246247
}
247248
}
248-
}
249249

250250
if (!foundOurAudit) {
251251
TraceEvent(SevWarn, "RestoreValidationNoAuditStates")

0 commit comments

Comments
 (0)