mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
710cf343a3
git-svn-id: file:///svn/tokudb@371 c7de825b-a66e-492c-adef-691d508d4ae1
25 lines
527 B
C
25 lines
527 B
C
#include "yerror.h"
|
|
#include <stdio.h>
|
|
#include "log.h"
|
|
#include <sys/types.h>
|
|
|
|
|
|
#define LOGGER_BUF_SIZE (1<<20)
|
|
struct tokulogger {
|
|
enum typ_tag tag;
|
|
char *directory;
|
|
int fd;
|
|
int n_in_file;
|
|
long long next_log_file_number;
|
|
char buf[LOGGER_BUF_SIZE];
|
|
int n_in_buf;
|
|
};
|
|
|
|
int tokulogger_find_next_unused_log_file(const char *directory, long long *result);
|
|
|
|
enum { LT_INSERT_WITH_NO_OVERWRITE = 'I', LT_DELETE = 'D', LT_COMMIT = 'C' };
|
|
|
|
struct tokutxn {
|
|
u_int64_t txnid64;
|
|
TOKULOGGER logger;
|
|
};
|