From e58cb9aa2f21b6453f9533a174fae0cbfda1e98c Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Tue, 31 May 2011 11:06:53 +0000 Subject: marker: fill out the volume-mark properly in case of marking corruption Signed-off-by: Csaba Henk Signed-off-by: Anand Avati BUG: 2858 (volume-mark corruption swallowed) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2858 BUG: 2858 (volume-mark corruption swallowed) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2858 --- xlators/features/marker/src/marker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xlators/features/marker/src/marker.c b/xlators/features/marker/src/marker.c index 041449b4033..d7b792bc471 100644 --- a/xlators/features/marker/src/marker.c +++ b/xlators/features/marker/src/marker.c @@ -206,7 +206,7 @@ stat_stampfile (xlator_t *this, marker_conf_t *priv, struct volume_mark **status vol_mark->sec = htonl (buf.st_ctime); vol_mark->usec = htonl (ST_CTIM_NSEC (&buf)/1000); } else - vol_mark->retval = 0; + vol_mark->retval = 1; *status = vol_mark; -- cgit