[Sheepdog] [PATCH 5/8] sheep: unset SD_FLAG_CMD_DIRECT before returning from forward functions
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Sat Aug 28 22:55:31 CEST 2010
hdr->flags will be referred later to check whether the request should
be retried or not, so we must unset SD_FLAG_CMD_DIRECT before exiting
these functions.
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
sheep/store.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/sheep/store.c b/sheep/store.c
index b777602..2952c4e 100644
--- a/sheep/store.c
+++ b/sheep/store.c
@@ -450,6 +450,7 @@ static int forward_read_obj_req(struct request *req)
}
out:
+ hdr->flags &= ~SD_FLAG_CMD_DIRECT;
return ret;
}
@@ -587,6 +588,8 @@ out:
close(pfds[i].fd);
}
+ hdr->flags &= ~SD_FLAG_CMD_DIRECT;
+
return ret;
}
--
1.5.6.5
More information about the sheepdog
mailing list