]> 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)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 30 Oct 2023 08:40:13 +0000 (08:40 +0000)
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 1322fb02204a003100392fe07dff55ec64003440..9707b93df152e4048341cfaccd5ea01c34054d8a 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 b69125f7c588251598df3194a3a9535e58cf6c27..d3ad4e705829e66cf728051bd38dfc069c94e2da 100644 (file)
@@ -968,8 +968,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 {