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

ROCKSDB_INCLUDE_RFR macro in wrong file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Pending Release
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 5.7, Not 5.5, Not 5.6
    • 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
              Reporter:
              vladislav.lesin Vladislav Lesin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: