[MDEV-4018] Feature Request: microseconds in GET_LOCK() Created: 2013-01-09  Updated: 2017-02-06  Resolved: 2014-11-30

Status: Closed
Project: MariaDB Server
Component/s: Locking
Fix Version/s: 10.1.2

Type: Task Priority: Major
Reporter: Federico Razzoli Assignee: Nirbhay Choubey (Inactive)
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-12005 GET_LOCK: Fractional part of timeout ... Closed

 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)



 Comments   
Comment by Nirbhay Choubey (Inactive) [ 2014-11-28 ]

http://lists.askmonty.org/pipermail/commits/2014-November/007086.html

Comment by Sergei Golubchik [ 2014-11-29 ]

Looks ok

Generated at Thu Feb 08 06:53:05 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.