Add state prefix to ThreadFuture.

This commit is contained in:
Ray Jenkins 2022-01-19 14:16:04 -06:00 committed by Jingyu Zhou
parent 234760f516
commit 9f577a8675
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ ACTOR Future<bool> setProcessClass(Reference<IDatabase> db, KeyRef network_addre
loop {
preCheckFilterTr->setOption(FDBTransactionOptions::SPECIAL_KEY_SPACE_ENABLE_WRITES);
try {
ThreadFuture<Optional<Value>> result = preCheckFilterTr->get(network_address.withPrefix(fdb_cli::processClassTypeSpecialKeyRange.begin));
state ThreadFuture<Optional<Value>> result = preCheckFilterTr->get(network_address.withPrefix(fdb_cli::processClassTypeSpecialKeyRange.begin));
Optional<Value> val = wait(safeThreadFutureToFuture(result));
if (!val.present()) {
printf("No matching addresses found\n");