// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
using System.IO;
namespace FASTER.core
{
///
/// Log commit manager
///
public interface ILogCommitManager
{
///
/// Perform (synchronous) commit with specified metadata
///
/// Committed begin address (for information only, not necessary to persist)
/// Address committed until (for information only, not necessary to persist)
/// Commit metadata - should be persisted
void Commit(long beginAddress, long untilAddress, byte[] commitMetadata);
///
/// Return prior commit metadata during recovery
///
///
byte[] GetCommitMetadata();
}
}