]> andersk Git - moira.git/blobdiff - server/queries2.c
do locking of tables before register_user query
[moira.git] / server / queries2.c
index 9b96d9523382e0b32acbc233017920722cfd96f5..fdd53ddd28940bc61b6a352c49caa74fc2fcde69 100644 (file)
@@ -282,9 +282,16 @@ static char *rusr_fields[] = {
   UID, LOGIN, "fs_type"
 };
 
+static struct valobj rusr_valobj[] = {
+  {V_LOCK, 0, USERS, 0, USERS_ID, SMS_DEADLOCK},
+  {V_LOCK, 0, LIST, 0, LIST_ID, SMS_DEADLOCK},
+  {V_LOCK, 0, FILESYS, 0, FILSYS_ID, SMS_DEADLOCK},
+  {V_LOCK, 0, "nfsphys", 0, "nfsphys_id", SMS_DEADLOCK},
+};
+
 static struct validate rusr_validate = {
-  ausr_valobj,
-  1,
+  rusr_valobj,
+  4,
   0,
   0,
   0,
This page took 0.031439 seconds and 4 git commands to generate.