[Commits] 86840c2: MDEV-6662: possible bug in cassandra_se.cc

Sergei Petrunia psergey at askmonty.org
Thu Dec 10 01:27:24 EET 2015


revision-id: 86840c21fef86f8b5db75c4c4726b99cdb558ebc
parent(s): 8254f054f871422dfb9f7963382d794fa2a18df9
committer: Sergei Petrunia
branch nick: 10.0
timestamp: 2015-12-10 02:27:24 +0300
message:

MDEV-6662: possible bug in cassandra_se.cc

Fix the trivial problem: we were modifying function's arguments,
not member variables.
There is no testcase as this can't be easily checked from MTR.

---
 storage/cassandra/cassandra_se.cc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/storage/cassandra/cassandra_se.cc b/storage/cassandra/cassandra_se.cc
index 384f04d..0086059 100644
--- a/storage/cassandra/cassandra_se.cc
+++ b/storage/cassandra/cassandra_se.cc
@@ -231,8 +231,8 @@ bool Cassandra_se_impl::reconnect()
 void Cassandra_se_impl::set_consistency_levels(unsigned long read_cons_level,
                                                unsigned long write_cons_level)
 {
-  write_cons_level= (ConsistencyLevel::type)(write_cons_level + 1);
-  read_cons_level=  (ConsistencyLevel::type)(read_cons_level + 1);
+  write_consistency= (ConsistencyLevel::type)(write_cons_level + 1);
+  read_consistency=  (ConsistencyLevel::type)(read_cons_level + 1);
 }
 
 


More information about the commits mailing list