[dovecot/core] a8a5f2: cassandra: Fallback consistency fix - max retry in...
GitHub
noreply at github.com
Mon Mar 27 11:30:12 UTC 2017
Branch: refs/heads/master
Home: https://github.com/dovecot/core
Commit: a8a5f2f8ccc134dcc7b61ea48664c3381db4a1aa
https://github.com/dovecot/core/commit/a8a5f2f8ccc134dcc7b61ea48664c3381db4a1aa
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2017-03-27 (Mon, 27 Mar 2017)
Changed paths:
M src/lib-sql/driver-cassandra.c
Log Message:
-----------
cassandra: Fallback consistency fix - max retry interval was set wrong
The maximum msecs is _MAX_RETRY_MSECS, not _FIRST_RETRY_MSECS
Commit: 2a24f3565c61cb429d1e428601f153ce53b8bae3
https://github.com/dovecot/core/commit/2a24f3565c61cb429d1e428601f153ce53b8bae3
Author: Timo Sirainen <timo.sirainen at dovecot.fi>
Date: 2017-03-27 (Mon, 27 Mar 2017)
Changed paths:
M src/lib-sql/driver-cassandra.c
Log Message:
-----------
cassandra: Fallback consistency fix - it wasn't used permanently
Because the "do I want to retry using primary consistency?" check was done
using the first failure timestamp, after 60 seconds that check always
returned TRUE. We should instead be checking the last timestamp for a
query that was sent with the primary consistency.
Compare: https://github.com/dovecot/core/compare/561a21c8ecef...2a24f3565c61
More information about the dovecot-cvs
mailing list