0
@@ -11,8 +11,8 @@ module Locking
0
- # Aquires an application level lock in the mysql server.
0
- def aquire_lock(lock_name = table_name, wait_timeout = 0)
0
+ # acquires an application level lock in the mysql server.
0
+ def acquire_lock(lock_name = table_name, wait_timeout = 0)
0
case c = connection.select_value("SELECT GET_LOCK(#{quote_value(lock_name)}, #{quote_value(wait_timeout)})")
0
@@ -28,10 +28,10 @@ module Locking
0
connection.select_one("SELECT RELEASE_LOCK(#{quote_value(lock_name)})")
0
- # Aquires an application level lock in the mysql server. Throws Locking::LockTimeout if the
0
- # lock cannot be aquired.
0
- def aquire_lock!(lock_name = table_name, wait_timeout = 0, &block)
0
- aquire_lock(lock_name, table_name, &block) or raise LockTimeout, 'Timeout waiting for lock'
0
+ # acquires an application level lock in the mysql server. Throws Locking::LockTimeout if the
0
+ # lock cannot be acquired.
0
+ def acquire_lock!(lock_name = table_name, wait_timeout = 0, &block)
0
+ acquire_lock(lock_name, table_name, &block) or raise LockTimeout, 'Timeout waiting for lock'
Comments
No one has commented yet.