Correctly wait on onError() future

Currently Mako worker thread waits on the original future that produced the error. Not the future returned by onError. Fix this.
This commit is contained in:
Junhyun Shim 2022-05-27 23:36:33 +02:00 committed by GitHub
parent 0500bcb3a7
commit f76d2454f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ force_inline FutureRC waitAndHandleError(fdb::Transaction& tx, FutureType& f, st
}
// implicit backoff
auto follow_up = tx.onError(err);
return waitAndHandleForOnError(tx, f, step);
return waitAndHandleForOnError(tx, follow_up, step);
}
} // namespace mako