diff options
author | Csaba Henk <csaba@gluster.com> | 2011-04-29 06:24:43 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-05-09 13:26:59 -0700 |
commit | 9ffd9c51f3833e04a60373648ba3c69c2ed7a68a (patch) | |
tree | bbcc241631879cb18afa0825abec13a4adbad44b /xlators | |
parent | a8addec412a7d6816e06dbbef2e14022edc6ec39 (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')
-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; |