which leads to a runtime error when the vss_mutex was released, but never
locked.
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2954
91ce42f0-d328-0410-95d8-
f526ca767f89
int SDJobStatus;
char ed1[50], ed2[50];
int SDJobStatus;
char ed1[50], ed2[50];
+#ifdef WIN32_VSS
+ if (g_pVSSClient && enable_vss)
+ /* Run only one at a time */
+ P(vss_mutex);
+#endif
+
set_jcr_job_status(jcr, JS_Blocked);
jcr->JobType = JT_BACKUP;
Dmsg1(100, "begin backup ff=%p\n", jcr->ff);
set_jcr_job_status(jcr, JS_Blocked);
jcr->JobType = JT_BACKUP;
Dmsg1(100, "begin backup ff=%p\n", jcr->ff);
#ifdef WIN32_VSS
/* START VSS ON WIN 32 */
#ifdef WIN32_VSS
/* START VSS ON WIN 32 */
- if (g_pVSSClient && enable_vss) {
- /* Run only one at a time */
- P(vss_mutex);
+ if (g_pVSSClient && enable_vss) {
if (g_pVSSClient->InitializeForBackup()) {
/* tell vss which drives to snapshot */
char szWinDriveLetters[27];
if (g_pVSSClient->InitializeForBackup()) {
/* tell vss which drives to snapshot */
char szWinDriveLetters[27];