]> andersk Git - moira.git/blobdiff - dcm/utils.c
since the Oracle-based moirad never returns MR_DEADLOCK, we don't need
[moira.git] / dcm / utils.c
index 6db3e19459eb9b4f983f78d2333408f32cc4cfa8..c0c4501beda326b55e10e8f485bfb1821347c797 100644 (file)
@@ -17,7 +17,7 @@ static char *rcsid_utils_c = "$Header$";
 
 #include <mit-copyright.h>
 #include <stdio.h>
-#include <strings.h>
+#include <string.h>
 #include <errno.h>
 #include <varargs.h>
 #include <sys/types.h>
@@ -117,22 +117,3 @@ int exclusive;
       com_err(whoami, 0, "%s now locked\n", lock);
     return fd;
 }
-
-
-int mr_query_with_retry(name, argc, argv, proc, hint)
-char *name;
-int argc;
-char **argv;
-int (*proc)();
-char *hint;
-{
-    int status, tries;
-
-    for (tries = 0; tries < DEADLOCK_TRIES; tries++) {
-       status = mr_query(name, argc, argv, proc, hint);
-       if (status != MR_DEADLOCK)
-         return(status);
-       sleep(DEADLOCK_WAIT);
-    }
-    return(status);
-}
This page took 0.08669 seconds and 4 git commands to generate.