]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: Rename MAIL_TRANSACTION_LOG_LOCK_CHANGE_TIMEOUT to .._DOTLOCK_..
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 2 Feb 2021 14:13:01 +0000 (16:13 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 3 May 2021 13:01:05 +0000 (13:01 +0000)
src/lib-index/mail-transaction-log-private.h
src/lib-index/mail-transaction-log.c

index bc803bda121a27d597f33f5fcb6e7c2594b7ba46..b720e47a988e0ef9a03499e6e9a00d183e5fd516 100644 (file)
@@ -9,7 +9,7 @@ struct dotlock_settings;
 /* Synchronization can take a while sometimes, especially when copying lots of
    mails. */
 #define MAIL_TRANSACTION_LOG_LOCK_TIMEOUT (3*60)
-#define MAIL_TRANSACTION_LOG_LOCK_CHANGE_TIMEOUT (3*60)
+#define MAIL_TRANSACTION_LOG_DOTLOCK_CHANGE_TIMEOUT (3*60)
 
 #define MAIL_TRANSACTION_LOG_FILE_IN_MEMORY(file) ((file)->fd == -1)
 
index 587c3672d97d05fb04a264679f3c2c1195601028..6e9b1eb6316c533bde7118bd32a45b476daa2ea7 100644 (file)
@@ -657,7 +657,7 @@ void mail_transaction_log_get_dotlock_set(struct mail_transaction_log *log,
        i_zero(set_r);
        set_r->timeout = I_MIN(MAIL_TRANSACTION_LOG_LOCK_TIMEOUT,
                               index->set.max_lock_timeout_secs);
-       set_r->stale_timeout = MAIL_TRANSACTION_LOG_LOCK_CHANGE_TIMEOUT;
+       set_r->stale_timeout = MAIL_TRANSACTION_LOG_DOTLOCK_CHANGE_TIMEOUT;
        set_r->nfs_flush = (index->flags & MAIL_INDEX_OPEN_FLAG_NFS_FLUSH) != 0;
        set_r->use_excl_lock =
                (index->flags & MAIL_INDEX_OPEN_FLAG_DOTLOCK_USE_EXCL) != 0;