From 966e7c05dac3c1f6c51d7c23dc1f020e01ba352c Mon Sep 17 00:00:00 2001 From: David Scott Date: Wed, 26 Jan 2011 17:39:05 +0000 Subject: [PATCH] Remove the product_version from the database manifest because it wasn't used. Signed-off-by: David Scott --- ocaml/database/db_cache_types.ml | 2 -- ocaml/database/db_cache_types.mli | 1 - ocaml/database/db_xml.ml | 3 --- ocaml/xapi/pool_db_backup.ml | 2 +- 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/ocaml/database/db_cache_types.ml b/ocaml/database/db_cache_types.ml index 10082c3f..139076da 100644 --- a/ocaml/database/db_cache_types.ml +++ b/ocaml/database/db_cache_types.ml @@ -30,7 +30,6 @@ type db_dump_manifest = { schema_major_vsn : int; schema_minor_vsn : int; - product_version : string; product_brand : string; build_number : string; xapi_major_vsn : int; @@ -42,7 +41,6 @@ let gen_manifest gen_count = { schema_major_vsn = Datamodel.schema_major_vsn; schema_minor_vsn = Datamodel.schema_minor_vsn; - product_version = Version.product_version; product_brand = Version.product_brand; build_number = Version.build_number; xapi_major_vsn = Xapi_globs.version_major; diff --git a/ocaml/database/db_cache_types.mli b/ocaml/database/db_cache_types.mli index 4ad75a0d..83c182b8 100644 --- a/ocaml/database/db_cache_types.mli +++ b/ocaml/database/db_cache_types.mli @@ -25,7 +25,6 @@ type structured_op_t = AddSet | RemoveSet | AddMap | RemoveMap type db_dump_manifest = { schema_major_vsn : int; schema_minor_vsn : int; - product_version : string; product_brand : string; build_number : string; xapi_major_vsn : int; diff --git a/ocaml/database/db_xml.ml b/ocaml/database/db_xml.ml index ed57437d..18d996d4 100644 --- a/ocaml/database/db_xml.ml +++ b/ocaml/database/db_xml.ml @@ -24,7 +24,6 @@ let make_tag n attrs : Xmlm.tag = (name n), List.map (fun (k, v) -> name k, v) a let _schema_major_vsn = "schema_major_vsn" let _schema_minor_vsn = "schema_minor_vsn" -let _product_version = "product_version" let _product_brand = "product_brand" let _build_number = "build_number" let _xapi_major_vsn = "xapi_major_vsn" @@ -64,7 +63,6 @@ module To = struct Xmlm.output output (`El_start (make_tag "manifest" [])); int output _schema_major_vsn manifest.schema_major_vsn; int output _schema_minor_vsn manifest.schema_minor_vsn; - string output _product_version manifest.product_version; string output _product_brand manifest.product_brand; string output _build_number manifest.build_number; int output _xapi_major_vsn manifest.xapi_major_vsn; @@ -138,7 +136,6 @@ module From = struct let manifest = { schema_major_vsn = int_of_string (List.assoc _schema_major_vsn manifest); schema_minor_vsn = int_of_string (List.assoc _schema_minor_vsn manifest); - product_version = List.assoc _product_version manifest; product_brand = List.assoc _product_brand manifest; build_number = List.assoc _build_number manifest; xapi_major_vsn = int_of_string (List.assoc _xapi_major_vsn manifest); diff --git a/ocaml/xapi/pool_db_backup.ml b/ocaml/xapi/pool_db_backup.ml index 07520751..100ac2df 100644 --- a/ocaml/xapi/pool_db_backup.ml +++ b/ocaml/xapi/pool_db_backup.ml @@ -29,7 +29,7 @@ let octet_stream = "Content-Type: application/octet-stream" (* CA-18377: The smallest database that is compatible with the Miami database schema. *) let minimally_compliant_miami_database = - "
" + "
" (** Write the database dump out to a file/socket *) let write_database (s: Unix.file_descr) ~__context = -- 2.39.5