From 8f2fc6fb3a63ca87d82b6fa933f94fb1e3283a26 Mon Sep 17 00:00:00 2001 From: Ajeet Jha Date: Mon, 2 Dec 2013 13:04:51 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/6403 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi Reviewed-by: Venky Shankar --- xlators/features/changelog/src/changelog-helpers.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators/features/changelog/src/changelog-helpers.c') 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; -- cgit