Skip to content

Commit 8734b3f

Browse files
committed
fixed bug
1 parent 9cf5c72 commit 8734b3f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

worker/draft.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,10 @@ func (n *node) processApplyCh() {
936936
case proposal.Mutations != nil:
937937
tags = append(tags, tag.Upsert(x.KeyMethod, "apply.Mutations"))
938938
span.SetAttributes(attribute.Int64("start_ts", int64(proposal.Mutations.StartTs)))
939-
posting.Oracle().GetTxn(proposal.Mutations.StartTs).Span = span
939+
txn := posting.Oracle().GetTxn(proposal.Mutations.StartTs)
940+
if txn != nil {
941+
txn.Span = span
942+
}
940943

941944
case proposal.Delta != nil:
942945
tags = append(tags, tag.Upsert(x.KeyMethod, "apply.Delta"))

0 commit comments

Comments
 (0)