[patch tabled 7/8] Clenaup stor_chunk.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Pete Zaitcev <zaitcev@xxxxxxxxxx>

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

commit ca0920cfe5978839ee1a35d6096754a87db6f9ac
Author: Pete Zaitcev <zaitcev@xxxxxxxxx>
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 */
--
To unsubscribe from this list: send the line "unsubscribe hail-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Fedora Clound]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux