LogCabin
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes
LogCabin::Storage::SimpleFileLog::Sync Class Reference
Inheritance diagram for LogCabin::Storage::SimpleFileLog::Sync:
LogCabin::Storage::Log::Sync

List of all members.

Public Member Functions

 Sync (uint64_t lastIndex)
void wait ()
 Wait for the log entries to be durable.

Public Attributes

std::vector< std::pair< int,
bool > > 
fds
 Set of file descriptors that are fsynced and closed on wait().

Detailed Description

Definition at line 38 of file SimpleFileLog.h.


Constructor & Destructor Documentation

LogCabin::Storage::SimpleFileLog::Sync::Sync ( uint64_t  lastIndex) [explicit]

Reimplemented from LogCabin::Storage::Log::Sync.

Definition at line 115 of file SimpleFileLog.cc.


Member Function Documentation

Wait for the log entries to be durable.

This is safe to call while the Log is being accessed and modified from a separate thread. PANICs on errors.

Reimplemented from LogCabin::Storage::Log::Sync.

Definition at line 122 of file SimpleFileLog.cc.


Member Data Documentation

std::vector<std::pair<int, bool> > LogCabin::Storage::SimpleFileLog::Sync::fds

Set of file descriptors that are fsynced and closed on wait().

If the bool is true, close it too.

Definition at line 46 of file SimpleFileLog.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines