[MDEV-12005] GET_LOCK: Fractional part of timeout is ignored Created: 2017-02-06  Updated: 2017-02-07  Resolved: 2017-02-07

Status: Closed
Project: MariaDB Server
Component/s: Locking
Affects Version/s: 10.1.21
Fix Version/s: 10.1.22

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

Issue Links:
Relates
relates to MDEV-4018 Feature Request: microseconds in GET_... Closed

 Description   

Connection 1:

MariaDB [test]> select get_lock('x', 1);
+------------------+
| get_lock('x', 1) |
+------------------+
|                1 |
+------------------+
1 row in set (0.00 sec)

Connection 2:

MariaDB [test]> select get_lock('x', 1.9);
+--------------------+
| get_lock('x', 1.9) |
+--------------------+
|                  0 |
+--------------------+
1 row in set (1.00 sec)



 Comments   
Comment by Nirbhay Choubey (Inactive) [ 2017-02-07 ]

http://lists.askmonty.org/pipermail/commits/2017-February/010622.html

Comment by Sergey Vojtovich [ 2017-02-07 ]

Ok to push.

Generated at Thu Feb 08 07:54:20 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.