-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vss: Get rid of one VSS client at a time.
The VSS code is currently one big minefield with global variables all over the place. These changes make it a bit better at the costs of using some so called thread specific data pointers e.g. using pthread_set_specific() and pthread_get_specific(). The big change is that we setup two TSD keys which control the Thread Specific Data. There is one key which holds the so called UTF8 to UCS2 cache which caches the last conversion done as this conversion is rather expensive and is done multiple times. The second key is used for registering the callback for the VSS pathconvert functions. In the FILED code we now keep track of the VSS instance used using a variable in the JCR instead of using a global VSS instance. As each Job uses one thread we could now run multiple Jobs which shouldn't clobber each others caches, have callbacks for VSS if they use VSS and have their own instance of the VSS class. By removing these limits we also had to fix the following problems: - CoInitializeSecurity may only be called once. - Wait for Snapshotset to complete Fixes #253: Enable concurrent jobs on Windows platforms Signed-off-by: Philipp Storz <philipp.storz@bareos.com>
- Loading branch information
Marco van Wieringen
committed
Dec 24, 2015
1 parent
6c03073
commit 37a083f
Showing
25 changed files
with
556 additions
and
378 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ | |
*/ | ||
|
||
#include "bareos.h" | ||
#include "jcr.h" | ||
#include "find.h" | ||
#include "ch.h" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ | |
*/ | ||
|
||
#include "bareos.h" | ||
#include "jcr.h" | ||
#include "find.h" | ||
|
||
#ifndef S_IRWXUGO | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ | |
*/ | ||
|
||
#include "bareos.h" | ||
#include "jcr.h" | ||
#include "find.h" | ||
|
||
static const int dbglvl = 450; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,6 @@ | |
#ifndef __FIND_H | ||
#define __FIND_H | ||
|
||
#include "jcr.h" | ||
#include "fileopts.h" | ||
#include "bfile.h" | ||
|
||
|
Oops, something went wrong.