From c6b1d707a8144eb4fd5a64e51775c4c3f1057e49 Mon Sep 17 00:00:00 2001 From: Vlad Khorsun Date: Fri, 22 Dec 2023 09:32:40 +0200 Subject: [PATCH] Correct non-Windows branch of code. It should fix failed test functional/replication/test_invalid_msg_if_target_db_has_no_replica_flag --- src/jrd/replication/Utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jrd/replication/Utils.cpp b/src/jrd/replication/Utils.cpp index 289d84f931..7f9ff6fe85 100644 --- a/src/jrd/replication/Utils.cpp +++ b/src/jrd/replication/Utils.cpp @@ -142,9 +142,9 @@ namespace (WaitForSingleObject(m_mutex, INFINITE) == WAIT_OBJECT_0); #else #ifdef HAVE_FLOCK - flock(fileno(file), LOCK_EX); + flock(fileno(file), LOCK_EX) == 0; #else - os_utils::lockf(fileno(file), F_LOCK, 0); + os_utils::lockf(fileno(file), F_LOCK, 0) == 0; #endif #endif