mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
fix member init query
This commit is contained in:
parent
01c18cc442
commit
e3381a4c1f
1 changed files with 3 additions and 3 deletions
|
@ -484,13 +484,13 @@ void PostgreSQL::heartbeat()
|
|||
const char *publicIdentity = publicId;
|
||||
const char *hostname = hostnameTmp;
|
||||
|
||||
fprintf(stderr, "Heartbeat connection opening");
|
||||
fprintf(stderr, "Heartbeat connection opening\n");
|
||||
pqxx::connection conn(_connString);
|
||||
if (!conn.is_open()) {
|
||||
fprintf(stderr, "Connection to database failed: heartbeat\n");
|
||||
exit(1);
|
||||
}
|
||||
fprintf(stderr, "Heartbeat connection opened");
|
||||
fprintf(stderr, "Heartbeat connection opened\n");
|
||||
conn.prepare("heartbeat",
|
||||
"INSERT INTO ztc_controller (id, cluster_host, last_alive, public_identity, v_major, v_minor, v_rev, v_build) "
|
||||
"VALUES ($1, $2, TO_TIMESTAMP($3::double precision/1000), $4, $5, $6, $7, $8) "
|
||||
|
|
Loading…
Add table
Reference in a new issue