Changeset: 052ff922be28 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/052ff922be28
Modified Files:
        common/utils/mutils.c
Branch: Jan2022
Log Message:

Wait a little longer between tries.


diffs (38 lines):

diff --git a/common/utils/mutils.c b/common/utils/mutils.c
--- a/common/utils/mutils.c
+++ b/common/utils/mutils.c
@@ -590,6 +590,7 @@ MT_stat(const char *pathname, struct _st
 }
 
 #define RETRIES 10
+#define SLEEPTIME 20
 
 int
 MT_rmdir(const char *pathname)
@@ -607,7 +608,7 @@ MT_rmdir(const char *pathname)
                 * service which prevents us from doing what we have a
                 * right to do, so try again (once) */
 //             fprintf(stderr, "#Retry rmdir %s\n", pathname);
-               Sleep(10);      /* wait a little */
+               Sleep(SLEEPTIME);       /* wait a little */
        }
        free(wpathname);
        return ret;
@@ -627,7 +628,7 @@ WMT_remove(const wchar_t *wpathname)
                 * service which prevents us from doing what we have a
                 * right to do, so try again (once) */
 //             fprintf(stderr, "#Retry unlink %ls\n", wpathname);
-               Sleep(10);      /* wait a little */
+               Sleep(SLEEPTIME);       /* wait a little */
        }
        return ret;
 }
@@ -668,7 +669,7 @@ MT_rename(const char *old, const char *d
                         * service which prevents us from doing what we have a
                         * right to do, so try again (once) */
 //                     fprintf(stderr, "#Retry rename %s %s\n", old, dst);
-                       Sleep(10);      /* wait a little */
+                       Sleep(SLEEPTIME);       /* wait a little */
                }
        }
        free(wold);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to