]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Skip unneeded fsync
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 18 Dec 2019 15:44:57 +0000 (15:44 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 18 Dec 2019 15:44:57 +0000 (15:44 +0000)
src/libserver/re_cache.c

index a495dfdd58d2199337b2405dbe02b164ca61d353..3e466e554fdddd2edb4e1228bb6cc9b77548565f 100644 (file)
@@ -2020,8 +2020,6 @@ rspamd_re_cache_compile_timer_cb (EV_P_ ev_timer *w, int revents )
                g_free (hs_flags);
        }
 
-       fsync (fd);
-
        /* Now rename temporary file to the new .hs file */
        rspamd_snprintf (npath, sizeof (path), "%s%c%s.hs", cbdata->cache_dir,
                        G_DIR_SEPARATOR, re_class->hash);