Skip to content

Commit

Permalink
Add state prefix to ThreadFuture.
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-rjenkins authored and jzhou77 committed Jan 24, 2022
1 parent 234760f commit 9f577a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fdbcli/SetClassCommand.actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 9f577a8

Please sign in to comment.