I’m trying to add support for Versionstamps to the third party FDBSwift bindings, but I’m running into a bit of an issue: every few runs, calling
fdb_future_get_value() on the future from
fdb_transaction_get_versionstamp() will return 0 bytes (
out_present is also 0). For all I know, I believe that my versionstamped key has been written to the database successfully and there are no other errors, so I’m open to any ideas anyone might have regarding why I’m seeing this behavior.
To be clear, this works fine nine times out of ten — it just fails to return a useful value every so often, so I’m concerned I’m doing something fundamentally wrong.
My PR, if it helps: https://github.com/kirilltitov/FDBSwift/pull/59