[Sheepdog] [PATCH 2/2] sheep, sdnet: add a dprintf for queue_request()

Liu Yuan namei.unix at gmail.com
Sat Sep 10 19:26:05 CEST 2011


From: Liu Yuan <tailai.ly at taobao.com>


Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
---
 sheep/sdnet.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/sheep/sdnet.c b/sheep/sdnet.c
index 1ce8c80..6d34c2b 100644
--- a/sheep/sdnet.c
+++ b/sheep/sdnet.c
@@ -208,6 +208,8 @@ static void queue_request(struct request *req)
 	struct sd_req *hdr = (struct sd_req *)&req->rq;
 	struct sd_rsp *rsp = (struct sd_rsp *)&req->rp;
 
+	dprintf("%x\n", hdr->opcode);
+
 	if (hdr->opcode == SD_OP_KILL_NODE) {
 		log_close();
 		exit(1);
-- 
1.7.5.1




More information about the sheepdog mailing list