Commit 7bf7fea7 authored by Sergei Petrunia's avatar Sergei Petrunia

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.
parent 50160216
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment