]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mdbox: Remove unused MDBOX_SYNC_FLAG_NO_PURGE
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 3 Jul 2023 09:12:03 +0000 (12:12 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 31 Jan 2024 11:37:41 +0000 (13:37 +0200)
src/lib-storage/index/dbox-multi/mdbox-save.c
src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.c
src/lib-storage/index/dbox-multi/mdbox-storage-rebuild.h
src/lib-storage/index/dbox-multi/mdbox-sync.h

index 6f1853915ce5bb689c10197492b0881e318fd2a3..8476332d8acffc614d1e38d685996a7bdcfd228c 100644 (file)
@@ -304,7 +304,7 @@ int mdbox_transaction_save_commit_pre(struct mail_save_context *_ctx)
        /* lock the mailbox after map to avoid deadlocks. if we've noticed
           any corruption, deal with it later, otherwise we won't have
           up-to-date atomic->sync_view */
-       if (mdbox_sync_begin(ctx->mbox, MDBOX_SYNC_FLAG_NO_PURGE |
+       if (mdbox_sync_begin(ctx->mbox,
                             MDBOX_SYNC_FLAG_FORCE |
                             MDBOX_SYNC_FLAG_FSYNC, ctx->atomic,
                             &ctx->sync_ctx, &corrupted) < 0) {
index 4277a1a0d22ae805ff10639d514ac87c6183c6a6..56e5608a7846f2562614f330bec2e19a78a8375f 100644 (file)
@@ -961,8 +961,9 @@ static int mdbox_storage_rebuild_scan(struct mdbox_storage_rebuild_context *ctx)
        return 0;
 }
 
-int mdbox_storage_rebuild_in_context(struct mdbox_storage *storage,
-                                    struct mdbox_map_atomic_context *atomic)
+static int
+mdbox_storage_rebuild_in_context(struct mdbox_storage *storage,
+                                struct mdbox_map_atomic_context *atomic)
 {
        struct mdbox_storage_rebuild_context *ctx;
        int ret;
index 1194d291accf56b5f505fc7ae91a4dae606a2921..087ef2cc967e7e739617859e077e9b25b24d7fe8 100644 (file)
@@ -3,8 +3,6 @@
 
 struct mdbox_map_atomic_context;
 
-int mdbox_storage_rebuild_in_context(struct mdbox_storage *storage,
-                                    struct mdbox_map_atomic_context *atomic);
 int mdbox_storage_rebuild(struct mdbox_storage *storage);
 
 #endif
index 8f58bd01e0652f69405ffa0db0b51c9ffd6e4356..a055328b97786407fe6281ecd4e738d974f79121 100644 (file)
@@ -8,7 +8,6 @@ enum mdbox_sync_flags {
        MDBOX_SYNC_FLAG_FORCE           = 0x01,
        MDBOX_SYNC_FLAG_FSYNC           = 0x02,
        MDBOX_SYNC_FLAG_FORCE_REBUILD   = 0x04,
-       MDBOX_SYNC_FLAG_NO_PURGE        = 0x08,
 };
 
 struct mdbox_sync_context {