Skip to content

Commit

Permalink
print out applied index as uint64
Browse files Browse the repository at this point in the history
Signed-off-by: Chao Chen <chaochn@amazon.com>
  • Loading branch information
chaochn47 committed Jul 20, 2022
1 parent 3f9fba9 commit 864006b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions etcdserver/v3_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import (
"bytes"
"context"
"encoding/binary"
"strconv"
"time"

"go.etcd.io/etcd/auth"
Expand Down Expand Up @@ -792,7 +791,7 @@ func (s *EtcdServer) linearizableReadLoop() {
trace.AddField(traceutil.Field{Key: "readStateIndex", Value: index})

ai := s.getAppliedIndex()
trace.AddField(traceutil.Field{Key: "appliedIndex", Value: strconv.FormatUint(ai, 10)})
trace.AddField(traceutil.Field{Key: "appliedIndex", Value: ai})

if ai < index {
select {
Expand Down

0 comments on commit 864006b

Please sign in to comment.