]> andersk Git - moira.git/commitdiff
Modified sms_query to not enclose RETRIEVE queries in begin/end transaction.
authormike <mike>
Fri, 28 Aug 1987 14:57:51 +0000 (14:57 +0000)
committermike <mike>
Fri, 28 Aug 1987 14:57:51 +0000 (14:57 +0000)
This was necessary to allow get_all_poboxes and get_groups_of_all_users
to temporarily change the Ingres lockmode.

server/qrtn.qc

index 2e4c8d34a1aaef9c13f154379d665dae983cf542..4222f5eeebb4dff85b5c87e444b2f8a401898c6e 100644 (file)
@@ -6,9 +6,14 @@
  *     Copyright (C) 1987 by the Massachusetts Institute of Technology
  *
  *     $Log$
- *     Revision 1.9  1987-08-22 17:47:38  wesommer
- *     Cleanup (these changes were by Mike).
+ *     Revision 1.10  1987-08-28 14:57:51  mike
+ *     Modified sms_query to not enclose RETRIEVE queries in begin/end transaction.
+ *     This was necessary to allow get_all_poboxes and get_groups_of_all_users
+ *     to temporarily change the Ingres lockmode.
  *
+ * Revision 1.9  87/08/22  17:47:38  wesommer
+ * Cleanup (these changes were by Mike).
+ * 
  * Revision 1.8  87/08/10  16:22:26  mike
  * wesommer modified error reporting.
  * 
@@ -209,7 +214,8 @@ sms_process_query(cl, name, argc, argv_ro, action, actarg)
            return(status);
     }
 
-##  begin transaction
+    if (q->type != RETRIEVE)
+##      begin transaction
 
     switch (q->type) {
     case RETRIEVE:
@@ -343,10 +349,13 @@ sms_process_query(cl, name, argc, argv_ro, action, actarg)
 
     }
 
-    if (status == SMS_SUCCESS)
-##      end transaction
-    else
-##      abort
+    if (q->type != RETRIEVE) {
+        if (status == SMS_SUCCESS) {
+##          end transaction
+       } else {
+##          abort
+       }
+    }
 
     if (status != SMS_SUCCESS && log_flags & LOG_RES)
        com_err(whoami, status, " (Query failed)");
This page took 0.040757 seconds and 5 git commands to generate.