Sync the session directory after committing the renames

Syncing the files alone does not make the new names survive a crash.
This commit is contained in:
xirvik
2026-09-19 02:24:52 +00:00
committed by rakshasa
parent 15756ddadc
commit 14c8d2b470
3 changed files with 150 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
#include "test/helpers/test_fixture.h"
#include <string>
class TestSessionCommit : public test_fixture {
CPPUNIT_TEST_SUITE(TestSessionCommit);
CPPUNIT_TEST(test_commit_publishes_all_three_files);
CPPUNIT_TEST(test_commit_with_fsync_publishes_all_three_files);
CPPUNIT_TEST_SUITE_END();
public:
void setUp();
void tearDown();
void test_commit_publishes_all_three_files();
void test_commit_with_fsync_publishes_all_three_files();
private:
void commit_and_verify(bool use_fsyncdisk);
std::string m_session_dir;
};