Fixed out-of-scope variable issue.
This commit is contained in:
parent
2caa4290c6
commit
97acc94a7f
|
@ -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)
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue