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

trx_t::start_time_micro for recovered or internal transactions is wrong

    XMLWordPrintable

    Details

      Description

      A clean-up that was performed about the same time with MDEV-14154 used the wrong source for a microsecond timer. The trx_t::start_time_micro is supposed to be initialized from my_hrtime() or my_hrtime_coarse(), not from the monotonic microsecond_interval_timer().

      The impact of this is unclear, but it should be minimal. Both internal and recovered transactions ought to have priority over user transactions. On my Debian GNU/Linux system on AMD64, both timestamps look similar. The my_hrtime_coarse() should involve less overhead than microsecond_interval_timer().

        Attachments

          Activity

            People

            Assignee:
            marko Marko Mäkelä
            Reporter:
            marko Marko Mäkelä
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: