]> xenbits.xensource.com Git - xcp/xen-api.git/commit
CP-1981: Resynchronise the locks in the sm_config maps of VDIs in dbsync_slave
authorJon Ludlam <jonathan.ludlam@eu.citrix.com>
Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)
committerJon Ludlam <jonathan.ludlam@eu.citrix.com>
Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)
commit934cfa278750ecaa03612e91d3d231e9264c583d
tree044150481600d243af391696db1912c04ce7c196
parente517caab5bf081504c0e1a8ab2df2cf757688879
CP-1981: Resynchronise the locks in the sm_config maps of VDIs in dbsync_slave

The 'locks' for the VDIs, which are maintained by the SM backends now, are stored in xapi's database. In the event of a master failover, the pool database may revert to a previous backup, which is then resynced with reality. Unfortunately there's no logic to resync the SM backends' data, nor any hook point to do this. Ideally, the SM backends would store their critical data internally somehow, but until this happens xapi will have to contain the important logic to resynchronise these locks.

This patch implements the logic to resynchronise the sm_config keys based on the information stored in the local database

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
ocaml/xapi/dbsync_slave.ml
ocaml/xapi/xapi_globs.ml