You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zero/ZeroLevel/Services/FASTER/Index/FasterLog/CommitInfo.cs

52 lines
1.1 KiB

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#pragma warning disable 0162
using System.Threading.Tasks;
namespace FASTER.core
{
/// <summary>
/// Info contained in task associated with commit
/// </summary>
public struct CommitInfo
{
/// <summary>
/// Begin address
/// </summary>
public long BeginAddress;
/// <summary>
/// From address of commit range
/// </summary>
public long FromAddress;
/// <summary>
/// Until address of commit range
/// </summary>
public long UntilAddress;
/// <summary>
/// Error code (0 = success)
/// </summary>
public uint ErrorCode;
}
/// <summary>
/// Linked list (chain) of commit info
/// </summary>
public struct LinkedCommitInfo
{
/// <summary>
/// Commit info
/// </summary>
public CommitInfo CommitInfo;
/// <summary>
/// Next task in commit chain
/// </summary>
public Task<LinkedCommitInfo> NextTask;
}
}

Powered by TurnKey Linux.