I think in file_rollback_restore(), we need to rebuild running, candidate and startup pointers in file_ds by calling file_fill_dsnodes(). Because the xml of file_ds has been changed to xml_rollback.
Otherwise, running, candidate and startup pointers shall be pointed to illegal memory if old xml is released. We has found such issue in tests.
Hi,
I think in file_rollback_restore(), we need to rebuild running, candidate and startup pointers in file_ds by calling file_fill_dsnodes(). Because the xml of file_ds has been changed to xml_rollback. Otherwise, running, candidate and startup pointers shall be pointed to illegal memory if old xml is released. We has found such issue in tests.