[patch tabled 7/8] Clenaup stor_chunk.c

Pete Zaitcev <[email protected]> Sun, 28 Nov 2010 18:41:16 -0700
Newsgroups org.kernel.vger.hail-devel
Message-ID <[email protected]>
Signed-off-by: Pete Zaitcev <[email protected]>

---
 server/stor_chunk.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

commit ca0920cfe5978839ee1a35d6096754a87db6f9ac
Author: Pete Zaitcev <[email protected]>
Date:   Sun Nov 28 18:01:24 2010 -0700

    Cleanup stor_chunk.

diff --git a/server/stor_chunk.c b/server/stor_chunk.c
index 7462a9c..9111750 100644
--- a/server/stor_chunk.c
+++ b/server/stor_chunk.c
@@ -21,14 +21,12 @@
 #include "tabled-config.h"
 
 #include <sys/types.h>
-// #include <sys/socket.h>
 #include <errno.h>
 #include <syslog.h>
 #include <string.h>
 #include <glib.h>
 #include <event.h>
 #include <chunkc.h>
-#include <netdb.h>
 #include "tabled.h"
 
 static const char stor_key_fmt[] = STOR_KEY_FMT;
@@ -117,7 +115,7 @@ static int chunk_put_start(struct open_chunk *cep,
 	event_base_set(cep->evbase, &cep->wevt);
 
 	if (debugging)
-		applog(LOG_INFO, "stor nid %u put %s new for %lld",
+		applog(LOG_INFO, "stor nid %u put %s size %lld",
 		       cep->node->id, stckey, (long long) size);
 
 	return 0;
@@ -249,7 +247,7 @@ static ssize_t chunk_put_buf(struct open_chunk *cep, void *data, size_t len)
 	int rc;
 
 	if (cep->done + len > cep->size) {
-		applog(LOG_ERR, "Put size %ld remaining %ld",
+		/* P3 */ applog(LOG_ERR, "Put length %ld remaining %ld",
 		       (long) len, (long) (cep->size - cep->done));
 		if (cep->done == cep->size)
 			return -EIO;	/* will spin otherwise, better error */