@@ -279,6 +279,7 @@ func newNode(store *raftwal.DiskStorage, gid uint32, id uint64, myAddr string) *
279279 closer : z .NewCloser (4 ), // Matches CLOSER:1
280280 ops : make (map [op ]operation ),
281281 cdcTracker : newCDC (),
282+ startTsKey : make (map [uint64 ]uint64 ),
282283 }
283284 return n
284285}
@@ -939,6 +940,7 @@ func (n *node) processApplyCh() {
939940 tags = append (tags , tag .Upsert (x .KeyMethod , "apply.Mutations" ))
940941 span .SetAttributes (attribute .Int64 ("start_ts" , int64 (proposal .Mutations .StartTs )))
941942 n .startTsKey [proposal .Mutations .StartTs ] = key
943+ fmt .Println ("Setting proposal key" , proposal .Mutations .StartTs , key )
942944 case proposal .Delta != nil :
943945 tags = append (tags , tag .Upsert (x .KeyMethod , "apply.Delta" ))
944946 }
@@ -1020,7 +1022,7 @@ func (n *node) commitOrAbort(pkey uint64, delta *pb.OracleDelta) error {
10201022 ))
10211023
10221024 spani := trace .SpanFromContext (n .Ctx (n .startTsKey [start ]))
1023- fmt .Println ("FIRST" , spani )
1025+ fmt .Println ("FIRST" , spani , n . startTsKey [ start ], start )
10241026 spani .AddEvent ("Committed txn with start_ts: %d, commit_ts: %d" , trace .WithAttributes (
10251027 attribute .Int64 ("start_ts" , int64 (start )),
10261028 attribute .Int64 ("commit_ts" , int64 (commit )),
@@ -1042,6 +1044,7 @@ func (n *node) commitOrAbort(pkey uint64, delta *pb.OracleDelta) error {
10421044 attribute .Int64 ("start_ts" , int64 (status .StartTs )),
10431045 attribute .Int64 ("commit_ts" , int64 (status .CommitTs )),
10441046 ))
1047+ delete (n .startTsKey , status .StartTs )
10451048 }
10461049
10471050 if x .WorkerConfig .HardSync {
0 commit comments