void
replication_init(const char *sync_from_, const char *exclude_tables,
- const struct uuid *server)
+ const struct uuid *server, int probe_interval)
{
free(sync_from);
sync_from = xstrdup(sync_from_);
session = jsonrpc_session_open(sync_from, true);
session_seqno = UINT_MAX;
+ jsonrpc_session_set_probe_interval(session, probe_interval);
+
/* Keep a copy of local server uuid. */
server_uuid = *server;
return true;
}
+void
+replication_set_probe_interval(int probe_interval)
+{
+ if (session) {
+ jsonrpc_session_set_probe_interval(session, probe_interval);
+ }
+}
+
void
replication_usage(void)
{