apache / couchdb-erlfdb

Erlang API for FoundationDB
https://www.foundationdb.org
Apache License 2.0
28 stars 20 forks source link

Avoid sending future ready messages when flushed #12

Closed davisp closed 3 years ago

davisp commented 3 years ago

There's a small race condition in erlfdb:flush_future_message if the is_ready returns true before the future's callback is invoked to send the ready message. This adds an API to silence the message from a future to close this race condition.

Fixes apache/couchdb#3294