talent-plan / tinysql

A course to build the SQL layer of a distributed database.
Apache License 2.0
1.7k stars 519 forks source link

Fix TestLockTTL #123

Closed czt1999 closed 2 years ago

czt1999 commented 2 years ago

fix #122

  1. Add elapsedUnit for ease of correcting calculation of TTL in TestLockTTL without effect on other implementations
  2. Convert x and y to float64 ahead of subtraction in ttlEquals
CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.

czt1999 commented 2 years ago

Refered to https://github.com/tiny-talent/distributed-txn, computing elapsed before prewrite can simply solve the problem. So this PR is closed.