tursodatabase/libsql

Total changes is accumulated per Hrana stream, not connection which is wrong

Open

#1,512 opened on 2024年6月27日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)C (490 forks)batch import
buggood first issuehelp wantedremote protocol

Repository metrics

Stars
 (16,744 stars)
PR merge metrics
 (平均マージ 23h 19m) (30d で 1 merged PR)

説明

We currently implement total_changes() incorrectly for Hrana client-side protocol because we accumulate the changes per stream, but should do it per connection. I merged the incorrect solution as an intermediate step to expose the API to users because fixing this is a bit involved. Hrana does pass connection to stream but turns it into something useless because of the generics trickery there.

コントリビューターガイド