crcs->status = LIBXL_COLO_SUSPENDED;
- if (libxl__qmp_get_replication_error(gc, crs->domid)) {
+ if (libxl__qmp_query_xen_replication_status(gc, crs->domid)) {
LOGD(ERROR, crs->domid, "replication error occurs when secondary vm is running");
goto out;
}
goto out;
}
- if (!css->paused && libxl__qmp_get_replication_error(gc, dss->domid)) {
+ if (!css->paused &&
+ libxl__qmp_query_xen_replication_status(gc, dss->domid)) {
LOGD(ERROR, dss->domid,
"replication error occurs when primary vm is running");
goto out;
_hidden int libxl__qmp_start_replication(libxl__gc *gc, int domid,
bool primary);
/* Get replication error that occurs when the vm is running */
-_hidden int libxl__qmp_get_replication_error(libxl__gc *gc, int domid);
+_hidden int libxl__qmp_query_xen_replication_status(libxl__gc *gc, int domid);
/* Do checkpoint */
_hidden int libxl__qmp_colo_do_checkpoint(libxl__gc *gc, int domid);
/* Stop replication */
return qmp_run_command(gc, domid, "xen-set-replication", args, NULL, NULL);
}
-int libxl__qmp_get_replication_error(libxl__gc *gc, int domid)
+int libxl__qmp_query_xen_replication_status(libxl__gc *gc, int domid)
{
- return qmp_run_command(gc, domid, "xen-get-replication-error", NULL,
+ return qmp_run_command(gc, domid, "query-xen-replication-status", NULL,
NULL, NULL);
}