Skip to content

Commit

Permalink
[Minor] Skip unneeded fsync
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Dec 18, 2019
1 parent 7d1482a commit 4520f98
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/libserver/re_cache.c
Expand Up @@ -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);
Expand Down

0 comments on commit 4520f98

Please sign in to comment.