[MDEV-6662] possible bug in cassandra_se.cc Created: 2014-08-29  Updated: 2015-12-10  Resolved: 2015-12-10

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - Cassandra
Affects Version/s: 10.0.14
Fix Version/s: 10.0.23

Type: Bug Priority: Major
Reporter: Ralf Neubauer Assignee: Sergei Petrunia
Resolution: Fixed Votes: 0
Labels: cassandra


 Description   

in storage/cassandra/cassandra_se.cc in bzr repository http://bazaar.launchpad.net/~maria-captains/maria/10.0/ revision 4362:

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);
}

should possibly be

void Cassandra_se_impl::set_consistency_levels(unsigned long read_cons_level,
                                               unsigned long write_cons_level)
{
  write_consistency= (ConsistencyLevel::type)(write_cons_level + 1);
  read_consistency=  (ConsistencyLevel::type)(read_cons_level + 1);
}

because these are the instance attributes that are actually used in the cass->... method calls.



 Comments   
Comment by Sergei Petrunia [ 2015-12-10 ]

Applied the patch. (Cassandra-SE is not maintained anymore, though)

Generated at Thu Feb 08 07:13:39 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.