Skip to content

Commit

Permalink
Correct non-Windows branch of code.
Browse files Browse the repository at this point in the history
It should fix failed test functional/replication/test_invalid_msg_if_target_db_has_no_replica_flag
  • Loading branch information
hvlad committed Dec 22, 2023
1 parent 778e7c1 commit c6b1d70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jrd/replication/Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c6b1d70

Please sign in to comment.