]> andersk Git - moira.git/blobdiff - server/qrtn.qc
Initial revision
[moira.git] / server / qrtn.qc
index 56be528b2639a59820cb2d72a8d2a44313db8aad..e822853e48af0fb6f8d4b45a027cd8e3b0fa004c 100644 (file)
@@ -16,7 +16,7 @@ static char *rcsid_qrtn_qc = "$Header$";
 
 char *Argv[16];
 
-int ingres_errno = 0;
+static int ingres_errno = 0;
 extern char *whoami;
 extern FILE *journal;
 
@@ -69,6 +69,7 @@ int sms_open_database()
        
     /* open the database */
 ##  ingres sms
+##  set lockmode session where readlock = exclusive
     return ingres_errno;
 }
 
@@ -136,7 +137,6 @@ sms_process_query(cl, name, argc, argv_ro, action, actarg)
     if (q == (struct query *)0) return(SMS_NO_HANDLE);
     v = q->validate;
 
-    ingres_errno = 0;
     if (q->type != RETRIEVE)
 ##      begin transaction
 
@@ -778,7 +778,6 @@ set_next_object_id(object, table)
     if (LOG_RES)
         com_err(whoami, 0, "setting ID %s to %d", name, value);
 ##  repeat replace v (#value = @value) where v.#name = @name
-    if (ingres_errno != 0) return(ingres_errno);
     return(SMS_SUCCESS);
 ##}
 
This page took 0.081243 seconds and 4 git commands to generate.