2007-06-11 21:36:57 +00:00
|
|
|
#include <stasis/logger/logger2.h>
|
2006-04-12 01:40:47 +00:00
|
|
|
|
|
|
|
#ifndef __INMEMORYLOG
|
|
|
|
#define __INMEMORYLOG 1
|
|
|
|
|
|
|
|
int open_InMemoryLog();
|
|
|
|
int writeLogEntry_InMemoryLog(LogEntry * e);
|
|
|
|
lsn_t flushedLSN_InMemoryLog();
|
2006-09-27 20:30:12 +00:00
|
|
|
void syncLog_InMemoryLog();
|
2006-04-12 01:40:47 +00:00
|
|
|
int truncateLog_InMemoryLog(lsn_t lsn);
|
|
|
|
lsn_t firstLogEntry_InMemoryLog();
|
|
|
|
void close_InMemoryLog();
|
2006-10-04 04:38:21 +00:00
|
|
|
long sizeofInternalLogEntry_InMemoryLog(const LogEntry * e);
|
2006-09-27 20:30:12 +00:00
|
|
|
LogEntry * readLSNEntry_InMemoryLog(lsn_t lsn);
|
|
|
|
lsn_t nextEntry_InMemoryLog(const LogEntry * e);
|
2006-04-12 01:40:47 +00:00
|
|
|
#endif
|