Skip to content

Commit

Permalink
Log revision skew values
Browse files Browse the repository at this point in the history
  • Loading branch information
samkim committed Dec 6, 2021
1 parent 1015f37 commit e7a79b0
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).Info().Int64("readSkew", cds.followerReadDelayNanos).Int64("totalSkew", nowHLC.IntPart()-quantized).Msg("revision skews")

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

Expand Down

0 comments on commit e7a79b0

Please sign in to comment.