summaryrefslogtreecommitdiffstats
path: root/xlators/features
diff options
context:
space:
mode:
authorCsaba Henk <csaba@gluster.com>2011-04-29 06:24:43 +0000
committerAnand Avati <avati@gluster.com>2011-05-09 13:26:59 -0700
commit9ffd9c51f3833e04a60373648ba3c69c2ed7a68a (patch)
treebbcc241631879cb18afa0825abec13a4adbad44b /xlators/features
parenta8addec412a7d6816e06dbbef2e14022edc6ec39 (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
Diffstat (limited to 'xlators/features')
-rw-r--r--xlators/features/marker/src/marker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/features/marker/src/marker.c b/xlators/features/marker/src/marker.c
index 041449b40..d7b792bc4 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;