ICrmLogControl::ForceLog method (comsvcs.h)

Forces all log records to be durable on disk.

Syntax

HRESULT ForceLog();

Return value

This method can return the following values.

Return code Description
S_OK
The method completed successfully.
XACT_E_WRONGSTATE
This method was called in the wrong state; either before RegisterCompensator or when the transaction is completing (CRM Worker).
XACT_E_ABORTED
The transaction has aborted, most likely because of a transaction time-out.

Remarks

The CRM Worker and CRM Compensator use this method to write log records lazily to the log, which means they are not made durable until they have been forced to the log. Calling ForceLog will make all log records that have been written durable on disk.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header comsvcs.h

See also

ICrmLogControl