Mercurial > hg > ltpda
comparison m-toolbox/test/aorepo_proto_test/test_lock.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 clear all; | |
2 | |
3 %% Connect | |
4 conn = mysql_connect('130.75.117.63', 'ltpda_test') | |
5 | |
6 %% Lock | |
7 % lock | |
8 q = 'FLUSH TABLES WITH WRITE LOCK'; | |
9 curs = exec(conn, q); | |
10 | |
11 | |
12 %% Unlock | |
13 | |
14 q = 'UNLOCK TABLES'; | |
15 curs = exec(conn, q); | |
16 | |
17 | |
18 | |
19 %% Close | |
20 close(conn); | |
21 | |
22 | |
23 | |
24 | |
25 | |
26 |