LogRecordSequence.RetryAppend 属性

定义

获取或设置一个值,指示在日志已满时是否自动重试追加操作。

public:
 property bool RetryAppend { bool get(); void set(bool value); };
public bool RetryAppend { get; set; }
member this.RetryAppend : bool with get, set
Public Property RetryAppend As Boolean

属性值

如果在日志已满时自动重试追加操作,则为 true;否则为 false。 默认值为 true

实现

例外

该属性是在序列已释放之后访问的。

示例

此示例演示如何使用 RetryAppend 属性。

// SET RETRY APPEND

// IO.Log provides a mechanism similar to AutoGrow.
// If the existing log is full and an append fails, setting RetryAppend
// invokes the CLFS policy engine to add new extents and re-tries
// record appends. If MaximumExtent count has been reached,
// a SequenceFullException is thrown.
//

sequence.RetryAppend = true;

// RETRY APPEND END
' SET RETRY APPEND

' IO.Log provides a mechanism similar to AutoGrow.
' If the existing log is full and an append fails, setting RetryAppend
' invokes the CLFS policy engine to add new extents and re-tries
' record appends. If MaximumExtent count has been reached, 
' a SequenceFullException is thrown. 
' 

sequence.RetryAppend = True

' RETRY APPEND END

注解

如果此属性的值为 true,且 Append 调用因为序列中没有足够的空间而失败,则记录序列将尝试释放空间,然后重试追加操作。

适用于