commit 4520f98: [Minor] Skip unneeded fsync
Vsevolod Stakhov
vsevolod at highsecure.ru
Wed Dec 18 15:49:08 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-12-18 15:44:57 +0000
URL: https://github.com/rspamd/rspamd/commit/4520f980abb58f099e2abb12b7f36819d3abf601 (HEAD -> master)
[Minor] Skip unneeded fsync
---
src/libserver/re_cache.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/libserver/re_cache.c b/src/libserver/re_cache.c
index a495dfdd5..3e466e554 100644
--- a/src/libserver/re_cache.c
+++ b/src/libserver/re_cache.c
@@ -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);
More information about the Commits
mailing list