'rm -f *.tmp' should always suffice.
Signed-off-by: Zygo Blaxell <bees@furryterror.org>
// Write the populated new table to a temp file, fsync, rename over
// the original. Crash-safety relies on the rename being atomic.
- const string tmp_filename = m_filename + ".resize";
+ const string tmp_filename = m_filename + ".tmp";
BEESNOTE("writing resized hash table to '" << tmp_filename << "'");
BEESLOGINFO("Writing resized hash table to '" << tmp_filename << "'");
unlinkat(m_ctx->home_fd(), tmp_filename.c_str(), 0);