mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2026-06-20 01:17:49 +02:00
Mark variables modified in TRY block as volatile.
It's important that the values in these variables are maintained even after an exception is thrown, so they must be marked volatile. Found while testing on the ppc64le architecture.
This commit is contained in:
+2
-2
@@ -503,8 +503,8 @@ infoLoad(const String *error, InfoLoadCallback *callbackFunction, void *callback
|
||||
MEM_CONTEXT_TEMP_BEGIN()
|
||||
{
|
||||
unsigned int try = 0;
|
||||
bool done = false;
|
||||
bool loaded = false;
|
||||
volatile bool done = false; // Are all files tried? Must be preserved even on error.
|
||||
volatile bool loaded = false; // Was a file loaded? Must be preserved even on error.
|
||||
const ErrorType *loadErrorType = NULL;
|
||||
String *loadErrorMessage = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user