From cc8f94b3791135ad764de03e518a1c46f050f456 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Thu, 9 Feb 2023 16:17:50 +0000 Subject: commit: T4990: call sync after the commit completes --- src/commit/commit-algorithm.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/commit/commit-algorithm.cpp b/src/commit/commit-algorithm.cpp index 13d3500..f04b8c2 100644 --- a/src/commit/commit-algorithm.cpp +++ b/src/commit/commit-algorithm.cpp @@ -14,6 +14,8 @@ * along with this program. If not, see . */ +#include + #include #include #include @@ -1358,6 +1360,8 @@ commit::doCommit(Cstore& cs, CfgNode& cfg1, CfgNode& cfg2) ret = cs.markSessionUnsaved(); } + sync(); + setenv("COMMIT_STATUS", cst, 1); _execute_hooks(POST_COMMIT); unsetenv("COMMIT_STATUS"); -- cgit v1.2.3