File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ void dump_vmstate_json_to_file(FILE *out_fp);
53
53
void migration_object_init (void );
54
54
void migration_shutdown (void );
55
55
56
- bool migration_is_active (void );
57
56
bool migration_is_running (void );
58
57
bool migration_thread_is_self (void );
59
58
Original file line number Diff line number Diff line change @@ -1139,6 +1139,14 @@ bool migration_is_running(void)
1139
1139
}
1140
1140
}
1141
1141
1142
+ static bool migration_is_active (void )
1143
+ {
1144
+ MigrationState * s = current_migration ;
1145
+
1146
+ return (s -> state == MIGRATION_STATUS_ACTIVE ||
1147
+ s -> state == MIGRATION_STATUS_POSTCOPY_ACTIVE );
1148
+ }
1149
+
1142
1150
static bool migrate_show_downtime (MigrationState * s )
1143
1151
{
1144
1152
return (s -> state == MIGRATION_STATUS_COMPLETED ) || migration_in_postcopy ();
@@ -1637,14 +1645,6 @@ bool migration_in_bg_snapshot(void)
1637
1645
return migrate_background_snapshot () && migration_is_running ();
1638
1646
}
1639
1647
1640
- bool migration_is_active (void )
1641
- {
1642
- MigrationState * s = current_migration ;
1643
-
1644
- return (s -> state == MIGRATION_STATUS_ACTIVE ||
1645
- s -> state == MIGRATION_STATUS_POSTCOPY_ACTIVE );
1646
- }
1647
-
1648
1648
bool migration_thread_is_self (void )
1649
1649
{
1650
1650
MigrationState * s = current_migration ;
You can’t perform that action at this time.
0 commit comments