]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Rename .vsize.lock file to dovecot-vsize.lock
authorAki Tuomi <aki.tuomi@dovecot.fi>
Wed, 24 Jan 2018 12:48:36 +0000 (14:48 +0200)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Mon, 12 Mar 2018 07:55:53 +0000 (09:55 +0200)
.vsize.lock can break maildir++ because it looks like a maildir folder,
so rename it to dovecot-vsize.lock.

Introduced in 9963bef6

src/lib-storage/index/index-mailbox-size.c
src/plugins/quota/quota-storage.c

index 272dd531ec7d02a75b64969195d39f6663e072e7..b0400c9e13990e83996bf186c8ddd3b3c42041d4 100644 (file)
@@ -33,7 +33,7 @@
    need to lock vsize updates before sync.
 */
 
-#define VSIZE_LOCK_SUFFIX ".vsize.lock"
+#define VSIZE_LOCK_SUFFIX "dovecot-vsize.lock"
 #define VSIZE_UPDATE_MAX_LOCK_SECS 10
 
 #define INDEXER_SOCKET_NAME "indexer"
index cd0c9c5b801e538da2ab4b50e55a7f6f669c0eea..74666f555c3d6b80dfc208fbccce659e84381b9b 100644 (file)
@@ -288,7 +288,7 @@ quota_copy(struct mail_save_context *ctx, struct mail *mail)
        /* we always want to know the mail size */
        mail_add_temp_wanted_fields(ctx->dest_mail, MAIL_FETCH_PHYSICAL_SIZE, NULL);
 
-       /* get quota before copying any mails. this avoids .vsize.lock
+       /* get quota before copying any mails. this avoids dovecot-vsize.lock
           deadlocks with backends that lock mails for expunging/copying. */
        enum quota_get_result error_res;
        const char *error;
@@ -355,7 +355,7 @@ quota_save_begin(struct mail_save_context *ctx, struct istream *input)
        /* we always want to know the mail size */
        mail_add_temp_wanted_fields(ctx->dest_mail, MAIL_FETCH_PHYSICAL_SIZE, NULL);
 
-       /* get quota before copying any mails. this avoids .vsize.lock
+       /* get quota before copying any mails. this avoids dovecot-vsize.lock
           deadlocks with backends that lock mails for expunging/copying. */
        enum quota_get_result error_res;
        if (quota_transaction_set_limits(qt, &error_res, &error) < 0) {