In future we should CreateProcessEx for Windows. This really wants a new
function for port/ that uses fork()/exec() on *nix, and CreateProcessEx on
Windows.
That's not within the scope of BDR as specified, and time's a-'ticking, so for
now let's just make this feature unsupported on Windows so the buildfarm stops
whining.
static void
bdr_exec_init_replica(Name conn_name, char *snapshot)
{
+#ifndef WIN32
pid_t pid;
char *bindir;
char *tmpdir;
pfree(replica_local_dsn);
pfree(remote_dsn);
pfree(tmpdir);
+#else
+ /*
+ * On Windows we should be using CreateProcessEx instead of fork() and
+ * exec(). We should add an abstraction for this to port/ eventually,
+ * so this code doesn't have to care about the platform.
+ *
+ * TODO
+ */
+ ereport(ERROR,
+ (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
+ errmsg("init_replica isn't supported on Windows yet")));
+#endif
}
/*