Skip to content
Snippets Groups Projects
Commit 706ef774 authored by Yuriy Vostrikov's avatar Yuriy Vostrikov
Browse files

[core] hide v04 stuff

parent 5cafa032
No related branches found
No related tags found
No related merge requests found
......@@ -76,6 +76,19 @@ struct log_io_iter {
int io_rate_limit;
};
struct row_v04 {
i64 lsn; /* this used to be tid */
u16 type;
u32 len;
u8 data[];
} __packed__;
static inline struct row_v04 *row_v04(const struct tbuf *t)
{
return (struct row_v04 *)t->data;
}
int
confirm_lsn(struct recovery_state *r, i64 lsn)
{
......
......@@ -98,13 +98,6 @@ struct wal_write_request {
u8 data[];
} __packed__;
struct row_v04 {
i64 lsn; /* this used to be tid */
u16 type;
u32 len;
u8 data[];
} __packed__;
struct row_v11 {
u32 header_crc32c;
i64 lsn;
......@@ -114,11 +107,6 @@ struct row_v11 {
u8 data[];
} __packed__;
static inline struct row_v04 *row_v04(const struct tbuf *t)
{
return (struct row_v04 *)t->data;
}
static inline struct row_v11 *row_v11(const struct tbuf *t)
{
return (struct row_v11 *)t->data;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment