Browse Source

[Minor] Skip unneeded fsync

tags/2.3
Vsevolod Stakhov 4 years ago
parent
commit
4520f980ab
1 changed files with 0 additions and 2 deletions
  1. 0
    2
      src/libserver/re_cache.c

+ 0
- 2
src/libserver/re_cache.c View 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);

Loading…
Cancel
Save