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:
parent
0500bcb3a7
commit
f76d2454f5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue