gregoriusxu / booksleeve

Automatically exported from code.google.com/p/booksleeve
Other
0 stars 0 forks source link

Environment.TickCount usage in RedisConnection #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Was going over your latest changes and notices you're using 
Environment.TickCount in RedisConnection.cs
I was just bitten by it a few days ago because TickCount turns negative after a 
server is up for ~30 days. Don't know if this is a problem in your usage but 
DateTime.UtcNow.Ticks might be safer.

Original issue reported on code.google.com by eyalpost on 22 Mar 2013 at 12:06

GoogleCodeExporter commented 8 years ago
good spot; actually I was specifically trying to avoid atomicity issues (long 
is not guaranteed atomic, etc), but I will revisit that. Thanks

Original comment by marc.gravell on 22 Mar 2013 at 12:54

GoogleCodeExporter commented 8 years ago

Original comment by marc.gravell on 3 Apr 2013 at 7:58