Doxense / foundationdb-dotnet-client

C#/.NET Binding for FoundationDB Client API
BSD 3-Clause "New" or "Revised" License
148 stars 33 forks source link

IFdbTransaction.GetApproximateSizeAsync() returns an incorrect value #119

Closed KrzysFR closed 1 year ago

KrzysFR commented 1 year ago

Calling IFdbTransaction.GetApproximateSizeAsync() returns the read version of the transaction, instead of the actual size in bytes.

This is because FdbNativeTransaction.GetApproximateSizeAsync calls the fdb_transaction_get_read_version() native method instead of fdb_transaction_get_approximate_size().