Uploaded image for project: 'Percona Server for MySQL'
  1. Percona Server for MySQL
  2. PS-4587

ROCKSDB_INCLUDE_RFR macro in wrong file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 5.7.x, Not 5.5.x, Not 5.6.x
    • Fix Version/s: 5.7.23-23
    • Component/s: MyRocks
    • Labels:
      None

      Description

      ROCKSDB_INCLUDE_RFR is defined in ha_rocksdb.cc file. There is conditional compilation in both .h and .cc files where the condition is the macro definition. If ha_rocksdb.h is included somewhere outside from ha_rocksdb.cc where ROCKSDB_INCLUDE_RFR is not defined then the objects of ha_rocksdb class will have not the same content as expected in the class member-functions in ha_rocksdb.cc, what can cause memory corruption. Move ROCKSDB_INCLUDE_RFR macro definition from .cc to .h file.

        Attachments

          Activity

            People

            Assignee:
            vladislav.lesin Vladislav Lesin (Inactive)
            Reporter:
            vladislav.lesin Vladislav Lesin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Smart Checklist