Skip to content

Commit

Permalink
Clear vss mutex when regex fails
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz authored and Marco van Wieringen committed Jun 23, 2015
1 parent f5a6f46 commit 51c3926
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/filed/dir_cmd.c
Expand Up @@ -2067,6 +2067,14 @@ static bool restore_cmd(JCR *jcr)
if (!jcr->where_bregexp) {
Jmsg(jcr, M_FATAL, 0, _("Bad where regexp. where=%s\n"), args);
free_pool_memory(args);
#if defined(WIN32_VSS)
if (jcr->VSS) {
/*
* clear mutex
*/
V(vss_mutex);
}
#endif
return false;
}
} else {
Expand Down

0 comments on commit 51c3926

Please sign in to comment.