From: Pete Zaitcev <zaitcev@redhat.com>
To: Jeff Garzik <jeff@garzik.org>
Cc: Project Hail List <hail-devel@vger.kernel.org>
Subject: [patch tabled 7/8] Clenaup stor_chunk.c
Date: Sun, 28 Nov 2010 18:41:16 -0700 [thread overview]
Message-ID: <20101128184116.5edfaad3@lembas.zaitcev.lan> (raw)
Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
---
server/stor_chunk.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
commit ca0920cfe5978839ee1a35d6096754a87db6f9ac
Author: Pete Zaitcev <zaitcev@yahoo.com>
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 */
reply other threads:[~2010-11-29 1:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101128184116.5edfaad3@lembas.zaitcev.lan \
--to=zaitcev@redhat.com \
--cc=hail-devel@vger.kernel.org \
--cc=jeff@garzik.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).