A method and apparatus for mirroring data between a plurality of sites is
provided. At a first site of the plurality of sites, a record is
maintained that identifies which changes made to one or more data blocks
that are stored at the first site have had associated redo information
replicated to the other sites of the plurality of sites. A priority value
associated with a transaction that is to be performed at the first site
is determined. The transaction specifies a modification to a data block.
Thereafter, if the priority value indicates that the transaction should
not be lost if the first site becomes inoperable, then the transaction is
committed only after the record indicates that all other changes that
have updated the data block at the first site have had their respective
redo information replicated to the other sites of the plurality of sites.