Fix proposeTxn and calculateSnapshot (#2493)
- Fix up proposeTxn, so we are updating the CommitTs as per the status in Zero oracle. - Fix #2474 by dealing with a nil resp.Context in server.go - Fix calculateSnapshot. It is not a given that every StartTs in Mutation proposal would have a corresponding commit/abort decision. So, use Oracle's MinPendingStartTs to decide how to calculate snapshot. - Remove o.aborts in Zero. The work can be done by o.commits map.
Showing
- contrib/release.sh 2 additions, 2 deletionscontrib/release.sh
- dgraph/cmd/zero/oracle.go 32 additions, 50 deletionsdgraph/cmd/zero/oracle.go
- edgraph/server.go 5 additions, 3 deletionsedgraph/server.go
- posting/oracle.go 5 additions, 3 deletionsposting/oracle.go
- worker/draft.go 28 additions, 48 deletionsworker/draft.go
Loading
Please register or sign in to comment