]> andersk Git - moira.git/commitdiff
remove version 1 queries
authormar <mar>
Fri, 4 Aug 1989 13:31:31 +0000 (13:31 +0000)
committermar <mar>
Fri, 4 Aug 1989 13:31:31 +0000 (13:31 +0000)
db/newmoira.qc

index 36f0cbb812c1741928b397ec626bb2f0d63e0fb2..cc1265e8ca71868c0dc22f9acaa1dd4846c81ce3 100644 (file)
@@ -15,8 +15,8 @@ static int ingres_errno = 0;
 int ingerr();
 
 extern char *tables[];
-extern struct query Queries1[], Queries2[];
-extern int QueryCount1, QueryCount2;
+extern struct query Queries2[];
+extern int QueryCount2;
 
 char *values[] = { "users_id", "mach_id", "clu_id", "list_id",
                   "nfsphys_id", "filsys_id", "strings_id", "dcm_enable",
@@ -237,27 +237,15 @@ char **argv;
     }
 
     /* And the capacls */
-    for (i = 0; i < QueryCount1; i++) {
-       query = Queries1[i].name;
-       value = Queries1[i].shortname;
+    for (i = 0; i < QueryCount2; i++) {
+       query = Queries2[i].name;
+       value = Queries2[i].shortname;
 ##     repeat append capacls (capability = @query, tag = @value, list_id = 2)
        if (ingres_errno) {
            printf("Unable to install query ACL for %s (%s)\n", query, value);
            exit(1);
        }
     }
-    for (i = 0; i < QueryCount2; i++) {
-       query = Queries2[i].name;
-       value = Queries2[i].shortname;
-##     repeat retrieve (flag = any(capacls.tag where capacls.tag = @value))
-       if (!flag) {
-##       repeat append capacls (capability = @query, tag = @value, list_id = 2)
-         if (ingres_errno) {
-             printf("Unable to install query ACL for %s (%s)\n", query, value);
-             exit(1);
-         }
-        }
-    }
 ##  append capacls (capability = "trigger_dcm", tag = "tdcm", list_id = 2)
 
     /* and the aliases */
This page took 0.044423 seconds and 5 git commands to generate.