diff options
author | Csaba Henk <csaba@gluster.com> | 2011-05-31 11:06:53 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-05-31 10:01:36 -0700 |
commit | e58cb9aa2f21b6453f9533a174fae0cbfda1e98c (patch) | |
tree | 3e1c66241a37e9734641c15a1d896bda5c38ab13 /xlators | |
parent | 19be0c055a4d37a3db60f68484bb1b8bf976633c (diff) |
marker: fill out the volume-mark properly in case of marking corruption
Signed-off-by: Csaba Henk <csaba@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
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
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/features/marker/src/marker.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |