]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
cassandra: Fallback consistency fix - it wasn't used permanently
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 27 Mar 2017 10:44:13 +0000 (13:44 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 27 Mar 2017 10:55:33 +0000 (13:55 +0300)
commit2a24f3565c61cb429d1e428601f153ce53b8bae3
tree0f71e555c57586349e5cad36dac3f6e4835acf66
parenta8a5f2f8ccc134dcc7b61ea48664c3381db4a1aa
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.
src/lib-sql/driver-cassandra.c