tursodatabase/libsql

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

Open

#1 512 ouverte le 27 juin 2024

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)C (490 forks)batch import
buggood first issuehelp wantedremote protocol

Métriques du dépôt

Stars
 (16 744 stars)
Métriques de merge PR
 (Merge moyen 23h 19m) (1 PR mergée en 30 j)

Description

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.

Guide contributeur