~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to docs/locks.rst

  • Committer: Lee Bieber
  • Date: 2011-02-24 03:20:47 UTC
  • mfrom: (2196.1.4 build)
  • Revision ID: kalebral@gmail.com-20110224032047-avmw06iwww3m73cw
Merge Andrew - 723653: Docs day first pass fixes 
Merge Brian - Puts back in support for COM_KILL, Also adds back in the INTERACTIVE flag, and creates a DD to track sessions/check on usage
Merge Olaf - Use List::size()

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
A user can create a "lock" which is scoped to their user space. Multiple
5
5
session of the user can see the lock.
6
6
 
7
 
SELECT GET_LOCK();
8
 
 
9
 
SELECT GET_LOCKS();
10
 
 
11
 
SELECT RELEASE_LOCK();
12
 
 
13
 
SELECT RELEASE_LOCK();
14
 
 
15
 
SELECT RELEASE_LOCKS();
16
 
 
17
 
SELECT is_free_lock();
18
 
 
19
 
SELECT is_used_lock();
 
7
.. code-block:: mysql
 
8
   
 
9
   SELECT GET_LOCK();
 
10
 
 
11
   SELECT GET_LOCKS();
 
12
 
 
13
   SELECT RELEASE_LOCK();
 
14
 
 
15
   SELECT RELEASE_LOCK();
 
16
 
 
17
   SELECT RELEASE_LOCKS();
 
18
 
 
19
   SELECT is_free_lock();
 
20
 
 
21
   SELECT is_used_lock();
20
22
 
21
23
If a session should exit, whatever locks it was holding will be deleted.
22
24