2007-09-28 17:11:22 +00:00
|
|
|
#ifndef TOKULOGGGER_H
|
|
|
|
#define TOKULOGGGER_H
|
2007-10-15 03:32:32 +00:00
|
|
|
#include "../include/db.h"
|
|
|
|
#include "brttypes.h"
|
2007-09-28 17:11:22 +00:00
|
|
|
#include "kv-pair.h"
|
|
|
|
typedef struct tokulogger *TOKULOGGER;
|
|
|
|
typedef struct tokutxn *TOKUTXN;
|
|
|
|
int tokulogger_create_and_open_logger (const char *directory, TOKULOGGER *resultp);
|
|
|
|
int tokulogger_log_bytes(TOKULOGGER logger, int nbytes, void *bytes);
|
|
|
|
int tokulogger_log_close(TOKULOGGER *logger);
|
|
|
|
|
2007-10-15 03:32:32 +00:00
|
|
|
int tokulogger_log_phys_add_or_delete_in_leaf (DB *db, TOKUTXN txn, diskoff diskoff, int is_add, const struct kv_pair *pair);
|
2007-09-28 17:11:22 +00:00
|
|
|
|
|
|
|
int tokulogger_log_commit (TOKUTXN txn);
|
|
|
|
|
2007-10-19 17:05:10 +00:00
|
|
|
int tokutxn_begin (TOKUTXN /*parent*/,TOKUTXN *, TXNID txnid64, TOKULOGGER logger);
|
2007-09-28 17:11:22 +00:00
|
|
|
|
|
|
|
#endif
|