diff options
Diffstat (limited to 'src/include/access/xact.h')
-rw-r--r-- | src/include/access/xact.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/include/access/xact.h b/src/include/access/xact.h index 44101453445..8b60e8f1635 100644 --- a/src/include/access/xact.h +++ b/src/include/access/xact.h @@ -54,11 +54,14 @@ extern bool XactDeferrable; typedef enum { - SYNCHRONOUS_COMMIT_OFF, /* asynchronous commit */ - SYNCHRONOUS_COMMIT_LOCAL, /* wait for only local flush */ - SYNCHRONOUS_COMMIT_ON /* wait for local flush and sync rep */ + SYNCHRONOUS_COMMIT_OFF, /* asynchronous commit */ + SYNCHRONOUS_COMMIT_LOCAL_FLUSH, /* wait for local flush only */ + SYNCHRONOUS_COMMIT_REMOTE_FLUSH /* wait for local and remote flush */ } SyncCommitLevel; +/* Define the default setting for synchonous_commit */ +#define SYNCHRONOUS_COMMIT_ON SYNCHRONOUS_COMMIT_REMOTE_FLUSH + /* Synchronous commit level */ extern int synchronous_commit; |