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

TokuDB: hatoku_hton.cc:1021:5: warning: ‘do_commit’ may be used uninitialized in this function

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.5.38, 10.0.11
    • Fix Version/s: 5.5.39, 10.0.13
    • Component/s: None
    • Labels:

      Description

      Compiling MariaDB with ASAN gives:
      cmake -DWITH_ASAN=ON -DCMAKE_BUILD_TYPE=Debug -DMYSQL_MAINTAINER_MODE=ON

      [ 88%] Building CXX object storage/tokudb/CMakeFiles/tokudb.dir/ha_tokudb.cc.o
      In file included from /home/svoj/devel/maria/10.0/storage/tokudb/ha_tokudb.cc:8287:0:
      /home/svoj/devel/maria/10.0/storage/tokudb/hatoku_hton.cc: In function ‘int tokudb_discover3(handlerton*, THD*, const char*, const char*, char*, uchar**, size_t*)’:
      /home/svoj/devel/maria/10.0/storage/tokudb/hatoku_hton.cc:1021:5: warning: ‘do_commit’ may be used uninitialized in this function [-Wmaybe-uninitialized]
           if (do_commit && txn) {
           ^

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              prohaska7 Rich Prohaska
              Reporter:
              svoj Sergey Vojtovich
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: