]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
director: Rename director_delayed_dir_remove_timeout() to director_hosts_purge_removed()
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 3 Oct 2017 13:40:32 +0000 (16:40 +0300)
committerTimo Sirainen <tss@dovecot.fi>
Thu, 5 Oct 2017 14:28:48 +0000 (17:28 +0300)
This allows using it for other purposes without having a confusing name.

src/director/director.c

index f80f3e361471a6eb42666384db8e07fdf2d9b18a..a7710d29d6c939a61b6f4cc82e4ce039d651c55c 100644 (file)
@@ -497,7 +497,7 @@ void director_notify_ring_added(struct director_host *added_host,
        director_update_send(added_host->dir, src, cmd);
 }
 
-static void director_delayed_dir_remove_timeout(struct director *dir)
+static void director_hosts_purge_removed(struct director *dir)
 {
        struct director_host *const *hosts, *host;
        unsigned int i, count;
@@ -541,7 +541,7 @@ void director_ring_remove(struct director_host *removed_host,
                if (dir->to_remove_dirs == NULL) {
                        dir->to_remove_dirs =
                                timeout_add(DIRECTOR_DELAYED_DIR_REMOVE_MSECS,
-                                           director_delayed_dir_remove_timeout, dir);
+                                           director_hosts_purge_removed, dir);
                }
        }