diff options
author | Ajeet Jha <ajha@redhat.com> | 2014-08-23 19:06:45 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-08-26 03:16:53 -0700 |
commit | acabde2c297c4175946565017ba17a251ad3fb1c (patch) | |
tree | 45a48a9f1c68b1966ce9c68dbb456997f62bdc63 /xlators/features/changelog/src/changelog-misc.h | |
parent | b56751b3b9a9ed3cceb2f0d221fa40ef94a8d516 (diff) |
features/changelog: Crash consistency of changelog wrt snapshot
This patch introduces call-path fop details logging for data operations
in CHANGELOG.SNAP. This feature is enabled with barrier-enable
notification and disabled with barrier-disable notification.
Change-Id: Ib548d34203eb99cea478a6baff402e82251c73a4
BUG: 1128093
Signed-off-by: Ajeet Jha <ajha@redhat.com>
Reviewed-on: http://review.gluster.org/8533
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/features/changelog/src/changelog-misc.h')
-rw-r--r-- | xlators/features/changelog/src/changelog-misc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/features/changelog/src/changelog-misc.h b/xlators/features/changelog/src/changelog-misc.h index 257c1f34218..58b10961463 100644 --- a/xlators/features/changelog/src/changelog-misc.h +++ b/xlators/features/changelog/src/changelog-misc.h @@ -17,6 +17,7 @@ #define CHANGELOG_MAX_TYPE 3 #define CHANGELOG_FILE_NAME "CHANGELOG" #define HTIME_FILE_NAME "HTIME" +#define CSNAP_FILE_NAME "CHANGELOG.SNAP" #define HTIME_KEY "trusted.glusterfs.htime" #define HTIME_INITIAL_VALUE "0:0" @@ -71,6 +72,11 @@ strcpy (path, changelog_dir); \ strcat (path, "/htime"); \ } while(0) + +#define CHANGELOG_FILL_CSNAP_DIR(changelog_dir, path) do { \ + strcpy (path, changelog_dir); \ + strcat (path, "/csnap"); \ + } while(0) /** * everything after 'CHANGELOG_TYPE_ENTRY' are internal types * (ie. none of the fops trigger this type of event), hence |