diff options
author | Ilya Maximets <i.maximets@ovn.org> | 2023-03-27 21:42:56 +0200 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2023-04-24 22:34:49 +0200 |
commit | 5575539f6c98cbec91f955805ae079899396f521 (patch) | |
tree | 242b4ab7e6f17b9a1859381e07305ae92663b0b8 /ovsdb/storage.c | |
parent | d70688a7291edb432fd66b9230a92842fcfd3607 (diff) | |
download | openvswitch-5575539f6c98cbec91f955805ae079899396f521.tar.gz |
ovsdb-tool: Fix cluster-to-standalone for DB conversion records.
If database conversion happens, both schema and the new data are
present in the database record. However, the schema is just silently
ignored by ovsdb-tool cluster-to-standalone. This creates data
inconsistency if the new data contains new columns, for example, so
the resulting database file will not be readable, or data will be lost.
Fix that by re-setting the database whenever a conversion record is
found and actually writing a new schema that will match the actual
data. The database file will not be that similar to the original,
but there is no way to represent conversion in a standalone database
file format otherwise.
Fixes: 00de46f9ee42 ("ovsdb-tool: Convert clustered db to standalone db.")
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Acked-by: Dumitru Ceara <dceara@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'ovsdb/storage.c')
0 files changed, 0 insertions, 0 deletions