aboutsummaryrefslogtreecommitdiff
path: root/stubs/colo.c
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>2023-05-15 16:06:40 +0300
committerJuan Quintela <quintela@redhat.com>2023-05-18 18:40:51 +0200
commitd0a14a2ba01c7b200e6ce3e7979e1ed3ede1d5c7 (patch)
treed1ea02b4b95b9946d28a3c4e37f0c93d6584f065 /stubs/colo.c
parentdd42ce24a3cda4be3c839aceb91fdf85e31c194f (diff)
migration: process_incoming_migration_co(): move colo part to colo
Let's make better public interface for COLO: instead of colo_process_incoming_thread and not trivial logic around creating the thread let's make simple colo_incoming_co(), hiding implementation from generic code. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Reviewed-by: Juan Quintela <quintela@redhat.com> Message-Id: <20230515130640.46035-4-vsementsov@yandex-team.ru> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'stubs/colo.c')
-rw-r--r--stubs/colo.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/stubs/colo.c b/stubs/colo.c
index cf9816d368..f33379d0fd 100644
--- a/stubs/colo.c
+++ b/stubs/colo.c
@@ -10,11 +10,9 @@ void colo_shutdown(void)
{
}
-void *colo_process_incoming_thread(void *opaque)
+int coroutine_fn colo_incoming_co(void)
{
- error_report("Impossible happend: trying to start COLO thread when COLO "
- "module is not built in");
- abort();
+ return 0;
}
void colo_checkpoint_delay_set(void)