diff options
author | Ajeet Jha <ajha@redhat.com> | 2013-12-02 13:04:51 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-01-27 09:43:03 -0800 |
commit | c8b9a9e9f82af7e752d4d881313374713701441d (patch) | |
tree | b97c4618519d1cc22236a3f46b410482c9f4d069 /xlators/features/changelog/src/changelog-helpers.c | |
parent | cc1728766620e13ccfe2cd0b162cbc848b20e422 (diff) |
features/changelog: more changelog fixes.
-> log additional records.
-> include FOP number for metadata.
-> prevent crash if inode is not found in a fop.
Change-Id: I9edd4b71819ebd68c6a2b4150ae279c471d129da
BUG: 1036536
Signed-off-by: Ajeet Jha <ajha@redhat.com>
Reviewed-on: http://review.gluster.org/6403
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Amar Tumballi <amarts@gmail.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-on: http://review.gluster.org/6808
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/features/changelog/src/changelog-helpers.c')
-rw-r--r-- | xlators/features/changelog/src/changelog-helpers.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/features/changelog/src/changelog-helpers.c b/xlators/features/changelog/src/changelog-helpers.c index 7ab0091b592..91c43a16c86 100644 --- a/xlators/features/changelog/src/changelog-helpers.c +++ b/xlators/features/changelog/src/changelog-helpers.c @@ -55,6 +55,9 @@ changelog_get_usable_buffer (changelog_local_t *local) { changelog_log_data_t *cld = NULL; + if (!local) + return NULL; + cld = &local->cld; if (!cld->cld_iobuf) return NULL; |