pstore2
Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
pstore::lock_block Struct Reference

The lock-block is a small struct placed immediately after the file header which is used by the transaction lock. More...

#include <file_header.hpp>

Static Public Member Functions

static constexpr std::uint64_t chars_to_uint64 (char const c1, char const c2, char const c3, char const c4, char const c5, char const c6, char const c7, char const c8) noexcept
 

Public Attributes

std::uint64_t vacuum_lock {chars_to_uint64 ('V', 'a', 'c', 'u', 'u', 'm', 'L', 'k')}
 
std::uint64_t transaction_lock {chars_to_uint64 ('T', 'r', 'n', 's', 'a', 'c', 't', 'L')}
 

Static Public Attributes

static constexpr auto file_offset = std::uint64_t{sizeof (header)}
 

Detailed Description

The lock-block is a small struct placed immediately after the file header which is used by the transaction lock.

This data is not read or written but a file range lock is placed on it as part of the implementation of the transaction lock.


The documentation for this struct was generated from the following file: