Skip to content

Commit

Permalink
switch release lock code to utils
Browse files Browse the repository at this point in the history
  • Loading branch information
hariharan-devarajan committed Aug 21, 2024
1 parent f61ace5 commit 45dce61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dyad/utils/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ dyad_rc_t dyad_excl_flock (const dyad_ctx_t* __restrict__ ctx, int fd,
dyad_rc_t rc = DYAD_RC_OK;
DYAD_C_FUNCTION_START();
DYAD_C_FUNCTION_UPDATE_INT ("fd", fd);
DYAD_LOG_INFO (ctx, "[node %u rank %u pid %d] Applies an exclusive lock on fd %d\n", \
DYAD_LOG_DEBUG (ctx, "[node %u rank %u pid %d] Applies an exclusive lock on fd %d\n", \
ctx->node_idx, ctx->rank, ctx->pid, fd);
if (!lock) {
rc = DYAD_RC_BADFIO;
Expand All @@ -517,7 +517,7 @@ dyad_rc_t dyad_excl_flock (const dyad_ctx_t* __restrict__ ctx, int fd,
rc = DYAD_RC_BADFIO;
goto excl_flock_end;
}
DYAD_LOG_INFO (ctx, "[node %u rank %u pid %d] Exclusive lock placed on fd %d\n", \
DYAD_LOG_DEBUG (ctx, "[node %u rank %u pid %d] Exclusive lock placed on fd %d\n", \
ctx->node_idx, ctx->rank, ctx->pid, fd);
rc = DYAD_RC_OK;
excl_flock_end:;
Expand All @@ -531,7 +531,7 @@ dyad_rc_t dyad_shared_flock (const dyad_ctx_t* __restrict__ ctx, int fd,
DYAD_C_FUNCTION_START();
DYAD_C_FUNCTION_UPDATE_INT ("fd", fd);
dyad_rc_t rc = DYAD_RC_OK;
DYAD_LOG_INFO (ctx, "[node %u rank %u pid %d] Applies a shared lock on fd %d\n", \
DYAD_LOG_DEBUG (ctx, "[node %u rank %u pid %d] Applies a shared lock on fd %d\n", \
ctx->node_idx, ctx->rank, ctx->pid, fd);
if (!lock) {
rc = DYAD_RC_BADFIO;
Expand Down

0 comments on commit 45dce61

Please sign in to comment.