From: mar Date: Fri, 8 Sep 1989 15:36:11 +0000 (+0000) Subject: do locking of tables before register_user query X-Git-Tag: ASRSNAP1001~35 X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/commitdiff_plain/ba408d2379e62687fc80b2c6028c67e73cb48f34 do locking of tables before register_user query --- diff --git a/server/queries2.c b/server/queries2.c index 9b96d952..fdd53ddd 100644 --- a/server/queries2.c +++ b/server/queries2.c @@ -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,