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

Feature Request: microseconds in GET_LOCK()

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 10.1.2
    • Component/s: Locking
    • Labels:
      None

      Description

      It would be useful if GET_LOCK() supports timeouts with a precision that is lower than 1 second.

      For now, you can pass a FLOAT value as a timeout, but it seems to be rounded:

      MariaDB [(none)]> SELECT GET_LOCK('x', 0.5);
      +--------------------+
      | GET_LOCK('x', 0.5) |
      +--------------------+
      |                  0 |
      +--------------------+
      1 row in set (1.00 sec)
      

        Gliffy Diagrams

          Attachments

            Activity

            Show
            nirbhay_c Nirbhay Choubey added a comment - http://lists.askmonty.org/pipermail/commits/2014-November/007086.html
            Hide
            serg Sergei Golubchik added a comment -

            Looks ok

            Show
            serg Sergei Golubchik added a comment - Looks ok

              People

              • Assignee:
                nirbhay_c Nirbhay Choubey
                Reporter:
                f_razzoli Federico Razzoli
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 1 day
                  1d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified