[rrd-developers] [PATCH 1/2] bindings should invoke new rrd_flushcached (instead of rrd_cmd_flush)
kevin brintnall
kbrint at rufus.net
Tue May 26 15:45:00 CEST 2009
---
bindings/lua/rrdlua.c | 2 +-
bindings/perl-shared/RRDs.xs | 2 +-
bindings/python/rrdtoolmodule.c | 2 +-
bindings/ruby/main.c | 2 +-
bindings/tcl/tclrrd.c | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/bindings/lua/rrdlua.c b/bindings/lua/rrdlua.c
index 2060f3b..a93159f 100644
--- a/bindings/lua/rrdlua.c
+++ b/bindings/lua/rrdlua.c
@@ -295,7 +295,7 @@ lua_rrd_graph (lua_State * L)
static int
lua_rrd_flush(lua_State *L)
{
- return rrd_common_call(L, "flush", rrd_cmd_flush);
+ return rrd_common_call(L, "flush", rrd_flushcached);
}
#if defined(DINF)
diff --git a/bindings/perl-shared/RRDs.xs b/bindings/perl-shared/RRDs.xs
index 3cf1d24..a32fc57 100644
--- a/bindings/perl-shared/RRDs.xs
+++ b/bindings/perl-shared/RRDs.xs
@@ -451,6 +451,6 @@ rrd_flush(...)
int i;
char **argv;
CODE:
- rrdcode(rrd_cmd_flush);
+ rrdcode(rrd_flushcached);
OUTPUT:
RETVAL
diff --git a/bindings/python/rrdtoolmodule.c b/bindings/python/rrdtoolmodule.c
index 85f63c7..9bf226b 100644
--- a/bindings/python/rrdtoolmodule.c
+++ b/bindings/python/rrdtoolmodule.c
@@ -572,7 +572,7 @@ static PyObject *PyRRD_flush(
if (create_args("flush", args, &argc, &argv) < 0)
return NULL;
- if (rrd_cmd_flush(argc, argv) != 0) {
+ if (rrd_flushcached(argc, argv) != 0) {
PyErr_SetString(ErrorObject, rrd_get_error());
rrd_clear_error();
r = NULL;
diff --git a/bindings/ruby/main.c b/bindings/ruby/main.c
index 4942277..f535827 100644
--- a/bindings/ruby/main.c
+++ b/bindings/ruby/main.c
@@ -148,7 +148,7 @@ VALUE rb_rrd_flush(
VALUE self,
VALUE args)
{
- return rrd_call(rrd_cmd_flush, args);
+ return rrd_call(rrd_flushcached, args);
}
diff --git a/bindings/tcl/tclrrd.c b/bindings/tcl/tclrrd.c
index f8a3c84..aa17c50 100644
--- a/bindings/tcl/tclrrd.c
+++ b/bindings/tcl/tclrrd.c
@@ -243,7 +243,7 @@ static int Rrd_Flush(
return TCL_ERROR;
}
- rrd_cmd_flush(argc, (char**)argv);
+ rrd_flushcached(argc, (char**)argv);
if (rrd_test_error()) {
Tcl_AppendResult(interp, "RRD Error: ",
--
1.6.2.2
More information about the rrd-developers
mailing list