summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 159ed49)
raw | patch | inline | side by side (parent: 159ed49)
author | Paul Sadauskas <psadauskas@gmail.com> | |
Mon, 6 Jul 2009 20:15:29 +0000 (14:15 -0600) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 6 Jul 2009 20:40:08 +0000 (22:40 +0200) |
src/tokyotyrant.c | patch | blob | history |
diff --git a/src/tokyotyrant.c b/src/tokyotyrant.c
index 87001a05eb1107361f1bb95e97fe78cbac7b69b5..160bf66760503601b8c7552b6d6aec78460e2420 100644 (file)
--- a/src/tokyotyrant.c
+++ b/src/tokyotyrant.c
return (0);
}
-static void printerr(TCRDB *rdb)
+static void printerr()
{
int ecode = tcrdbecode(rdb);
ERROR ("tokyotyrant plugin: error: %d, %s",
gauge_t rnum, size;
rnum = tcrdbrnum(rdb);
- size = tcrdbsize(rdb);
tt_submit (rnum, "records");
+
+ size = tcrdbsize(rdb);
tt_submit (size, "file_size");
return (0);
if (!tcrdbopen(rdb, host, port))
{
- printerr (rdb);
+ printerr ();
tcrdbdel (rdb);
return (1);
}
if (!tcrdbclose(rdb))
{
- printerr (rdb);
+ printerr ();
tcrdbdel (rdb);
return (1);
}