summaryrefslogtreecommitdiffstats
path: root/src/libs/zbxdbhigh/db.c
diff options
context:
space:
mode:
authorsasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-02-22 13:19:05 +0000
committersasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-02-22 13:19:05 +0000
commit1bba319e5b2f32b8469c5d7a62b5abed5708e5fb (patch)
treec58d49dd89d95e8e45e4bca5b734cd3fc2fea4b8 /src/libs/zbxdbhigh/db.c
parente4fbe3d28b7dcba78a10d592a978215fcb0fb106 (diff)
downloadzabbix-1bba319e5b2f32b8469c5d7a62b5abed5708e5fb.tar.gz
zabbix-1bba319e5b2f32b8469c5d7a62b5abed5708e5fb.tar.xz
zabbix-1bba319e5b2f32b8469c5d7a62b5abed5708e5fb.zip
- [DEV-110] Proxy changes
git-svn-id: svn://svn.zabbix.com/trunk@5384 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/libs/zbxdbhigh/db.c')
-rw-r--r--src/libs/zbxdbhigh/db.c21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/libs/zbxdbhigh/db.c b/src/libs/zbxdbhigh/db.c
index 97d3c5f1..535cb10e 100644
--- a/src/libs/zbxdbhigh/db.c
+++ b/src/libs/zbxdbhigh/db.c
@@ -1993,7 +1993,12 @@ int DBproxy_add_history(zbx_uint64_t itemid, double value, int clock)
{
zabbix_log(LOG_LEVEL_DEBUG, "In proxy_add_history()");
- DBexecute("insert into history (clock,itemid,value) values (%d," ZBX_FS_UI64 "," ZBX_FS_DBL ")",
+/* DBexecute("insert into history (clock,itemid,value) values (%d," ZBX_FS_UI64 "," ZBX_FS_DBL ")",
+ clock,
+ itemid,
+ value);
+*/
+ DBexecute("insert into history_sync (clock,itemid,value) values (%d," ZBX_FS_UI64 "," ZBX_FS_DBL ")",
clock,
itemid,
value);
@@ -2005,7 +2010,12 @@ int DBproxy_add_history_uint(zbx_uint64_t itemid, zbx_uint64_t value, int clock)
{
zabbix_log(LOG_LEVEL_DEBUG, "In proxy_add_history_uint()");
- DBexecute("insert into history_uint (clock,itemid,value) values (%d," ZBX_FS_UI64 "," ZBX_FS_UI64 ")",
+/* DBexecute("insert into history_uint (clock,itemid,value) values (%d," ZBX_FS_UI64 "," ZBX_FS_UI64 ")",
+ clock,
+ itemid,
+ value);
+*/
+ DBexecute("insert into history_uint_sync (clock,itemid,value) values (%d," ZBX_FS_UI64 "," ZBX_FS_UI64 ")",
clock,
itemid,
value);
@@ -2021,7 +2031,12 @@ int DBproxy_add_history_str(zbx_uint64_t itemid, char *value, int clock)
DBescape_string(value, value_esc, MAX_STRING_LEN);
- DBexecute("insert into history_str (clock,itemid,value) values (%d," ZBX_FS_UI64 ",'%s')",
+/* DBexecute("insert into history_str (clock,itemid,value) values (%d," ZBX_FS_UI64 ",'%s')",
+ clock,
+ itemid,
+ value_esc);
+*/
+ DBexecute("insert into history_str_sync (clock,itemid,value) values (%d," ZBX_FS_UI64 ",'%s')",
clock,
itemid,
value_esc);