Skip to content

Commit

Permalink
Merge pull request #324 from samkim/log-delays
Browse files Browse the repository at this point in the history
Log revision skew values
  • Loading branch information
jzelinskie committed Dec 9, 2021
2 parents 50779a3 + f972476 commit 0fc52b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/datastore/crdb/crdb.go
Expand Up @@ -205,6 +205,7 @@ func (cds *crdbDatastore) Revision(ctx context.Context) (datastore.Revision, err
if cds.quantizationNanos > 0 {
quantized -= (crdbNow % cds.quantizationNanos)
}
log.Ctx(ctx).Debug().Int64("readSkew", cds.followerReadDelayNanos).Int64("totalSkew", nowHLC.IntPart()-quantized).Msg("revision skews")

validForNanos := (quantized + cds.quantizationNanos) - crdbNow

Expand Down

0 comments on commit 0fc52b6

Please sign in to comment.