Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-6662

possible bug in cassandra_se.cc

    XMLWordPrintable

Details

    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.

      Attachments

        Activity

          People

            psergei Sergei Petrunia
            RalfNeubauer Ralf Neubauer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.