Commit 30fe5d1
committed
fix(bootstrap): backup stale pool_agent_meta.json before starting services
The pool agent meta file may contain the old driver_spec schema
("driver" key instead of "kind") after upgrading code without
re-running the agent. Move the file aside idempotently so the
agent recreates it from the database with the correct schema.
Signed-off-by: Anton Kremenetsky <anton.kremenetsky@gmail.com>1 parent bd95f8c commit 30fe5d1
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
146 | 157 | | |
147 | 158 | | |
148 | 159 | | |
| |||
0 commit comments