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:
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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user