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);
}