1
0
mirror of https://github.com/apple/foundationdb.git synced 2025-05-17 03:12:21 +08:00

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

@ -78,7 +78,7 @@ ACTOR Future<bool> setProcessClass(Reference<IDatabase> db, KeyRef network_addre
loop { loop {
preCheckFilterTr->setOption(FDBTransactionOptions::SPECIAL_KEY_SPACE_ENABLE_WRITES); preCheckFilterTr->setOption(FDBTransactionOptions::SPECIAL_KEY_SPACE_ENABLE_WRITES);
try { 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)); Optional<Value> val = wait(safeThreadFutureToFuture(result));
if (!val.present()) { if (!val.present()) {
printf("No matching addresses found\n"); printf("No matching addresses found\n");