Fixed out-of-scope variable issue.

This commit is contained in:
He Liu 2022-10-12 16:13:57 -07:00
parent 2caa4290c6
commit 97acc94a7f
2 changed files with 5 additions and 2 deletions

View File

@ -2026,7 +2026,8 @@ ACTOR Future<Void> triggerAuditStorage(ClusterControllerData* self, TriggerAudit
}
TriggerAuditRequest fReq(req.getType(), req.range);
auditId = wait(self->db.serverInfo->get().distributor.get().triggerAudit.getReply(fReq));
UID auditId_ = wait(self->db.serverInfo->get().distributor.get().triggerAudit.getReply(fReq));
auditId = auditId_;
TraceEvent(SevDebug, "CCTriggerAuditStorageEnd", self->id)
.detail("AuditID", auditId)
.detail("Range", req.range)

View File

@ -100,8 +100,10 @@ struct ValidateStorage : TestWorkload {
ACTOR Future<Version> populateData(ValidateStorage* self, Database cx, std::map<Key, Value>* kvs) {
state Reference<ReadYourWritesTransaction> tr = makeReference<ReadYourWritesTransaction>(cx);
state Version version;
state UID debugID;
loop {
state UID debugID = deterministicRandom()->randomUniqueID();
debugID = deterministicRandom()->randomUniqueID();
try {
tr->debugTransaction(debugID);
for (const auto& [key, value] : *kvs) {