@cryptotaxi247 / netdata-1 / commits / 7a7060149

preparation for backend databases

Costa Tsaousis committed Nov 20, 2016 at 00:45 UTC 7a70601499e6f093413a330304a2abc89d39f597
5 files changed +6 -1
CMakeLists.txt
+2
@@ -14,6 +14,8 @@ set(NETDATA_SOURCE_FILES
14 src/appconfig.h
15 src/avl.c
16 src/avl.h
17 + src/backends.c
18 + src/backends.h
19 src/common.c
20 src/common.h
21 src/daemon.c
src/Makefile.am
+1
@@ -29,6 +29,7 @@ plugins_PROGRAMS = apps.plugin
29 netdata_SOURCES = \
30 appconfig.c appconfig.h \
31 avl.c avl.h \
32 + backends.c backends.h \
33 common.c common.h \
34 daemon.c daemon.h \
35 dictionary.c dictionary.h \
src/common.h
+1
@@ -130,6 +130,7 @@
130 #include "unit_test.h"
131
132 #include "ipc.h"
133 +#include "backends.h"
134
135 #ifdef abs
136 #undef abs
src/main.c
+1
@@ -48,6 +48,7 @@ struct netdata_static_thread {
48 {"proc", "plugins", "proc", 1, NULL, NULL, proc_main},
49 {"cgroups", "plugins", "cgroups", 1, NULL, NULL, cgroups_main},
50 {"check", "plugins", "checks", 0, NULL, NULL, checks_main},
51 + {"backends", NULL, NULL, 1, NULL, NULL, backends_main},
52 {"health", NULL, NULL, 1, NULL, NULL, health_main},
53 {"plugins.d", NULL, NULL, 1, NULL, NULL, pluginsd_main},
54 {"web", NULL, NULL, 1, NULL, NULL, socket_listen_main_multi_threaded},
src/web_server.c
+1 -1
@@ -290,7 +290,7 @@ static inline int bind_to_one(const char *definition, int default_port, int list
290 }
291
292 if (fd == -1)
293 - error("Cannot bind to ip '%s', port %d", rip, default_port);
293 + error("Cannot bind to ip '%s', port %d", rip, rport);
294 else {
295 add_listen_socket(fd, rip, rport);
296 added++;