Skip to content

Commit

Permalink
MDEV-25613 assertion (file_system.n_open > 0) failed
Browse files Browse the repository at this point in the history
Remove operations on fil_system.n_open from mariabackup, as they are not
protected by the mutex, and serve no higher purpose anyway.
  • Loading branch information
vaintroub committed May 7, 2021
1 parent d44a10f commit a5b3982
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions extra/mariabackup/fil_cur.cc
Expand Up @@ -108,9 +108,6 @@ xb_fil_node_close_file(

node->handle = OS_FILE_CLOSED;
mutex_exit(&fil_system.mutex);

ut_a(fil_system.n_open > 0);
fil_system.n_open--;
}

/************************************************************************
Expand Down Expand Up @@ -169,8 +166,6 @@ xb_fil_cur_open(

return(XB_FIL_CUR_SKIP);
}

fil_system.n_open++;
}

ut_ad(node->is_open());
Expand Down

0 comments on commit a5b3982

Please sign in to comment.