Commit 14a4bfb
committed
CA-418227: Detect rolling upgrade after setting software_version
The `host.software_version` field is updated in dbsync_slave, and only
after that has happened, the coordinator can detect whether rolling pool
upgrade is in progress (by comparing versions across the pool from this
DB field).
Unfortunately, the `detect_rolling_upgrade` function is first called
just before dbsync_slave runs, as part of `Db_gc.single_pass`, right
after starting the DB engine on the coordinator. This will eventually
get rectified once the DB thread is running, but unfortunately a
function in dbsync_master (which sets the `host.allowed_operations`
fields for all hosts) relies on the RPU state to be correct. Therefore,
force the RPU detection immediately after dbsync_slave.
This isn't a great solution... but any change to the startup sequence
seems to break _something_ and this looks relatively safe.
Signed-off-by: Rob Hoes <rob.hoes@citrix.com>1 parent 97687a3 commit 14a4bfb
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
| 357 | + | |
357 | 358 | | |
358 | 359 | | |
359 | 360 | | |
| |||
0 commit comments