]> xenbits.xensource.com Git - xcp/xen-api.git/commit
Remove all mutable state within the database layer, leaving one single global referen...
authorDavid Scott <dave.scott@eu.citrix.com>
Wed, 26 Jan 2011 17:39:05 +0000 (17:39 +0000)
committerDavid Scott <dave.scott@eu.citrix.com>
Wed, 26 Jan 2011 17:39:05 +0000 (17:39 +0000)
commit647b71a00b48dc44a3cf2fa49536443d5c1513a6
tree362f20b4b77e6446cb864da035a5b6577b8428d2
parent6eeec2d6f0a17a5cce81156daa948dbbec947422
Remove all mutable state within the database layer, leaving one single global reference (to the master's single "database"). Allow the type-safe Db.* API to be used on more than one database at a time, by adding the "current database" to Context.t. Add a notion of database callbacks which are used by xapi for both the redo-log(s) and the event system.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
39 files changed:
ocaml/database/OMakefile
ocaml/database/backend_xml.ml
ocaml/database/backend_xml.mli
ocaml/database/database_server_main.ml
ocaml/database/database_test.ml
ocaml/database/database_test.mli [new file with mode: 0644]
ocaml/database/database_test_main.ml [new file with mode: 0644]
ocaml/database/db_action_helper.ml
ocaml/database/db_backend.ml
ocaml/database/db_cache_impl.ml
ocaml/database/db_cache_impl.mli
ocaml/database/db_cache_types.ml
ocaml/database/db_cache_types.mli
ocaml/database/db_conn_store.ml
ocaml/database/db_connections.ml
ocaml/database/db_dirty.ml [deleted file]
ocaml/database/db_interface.ml
ocaml/database/db_upgrade.ml
ocaml/database/db_xml.ml
ocaml/database/escaping.ml
ocaml/database/eventgen.ml
ocaml/database/generation.ml
ocaml/database/redo_log.ml
ocaml/database/redo_log.mli
ocaml/database/ref_index.ml
ocaml/database/ref_index.mli
ocaml/database/schema.ml [new file with mode: 0644]
ocaml/db_process/xapi-db-process.ml
ocaml/idl/datamodel.ml
ocaml/idl/ocaml_backend/OMakefile
ocaml/idl/ocaml_backend/gen_db_actions.ml
ocaml/xapi/parse_db_conf.ml
ocaml/xapi/pool_db_backup.ml
ocaml/xapi/redo_log_usage.ml
ocaml/xapi/xapi.ml
ocaml/xapi/xapi_ha.ml
ocaml/xapi/xapi_host_backup.ml
ocaml/xapi/xapi_pool.ml
ocaml/xapi/xha_metadata_vdi.ml