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

[box] fix snap printing

parent 8a09f9d5
No related branches found
No related tags found
No related merge requests found
...@@ -1425,7 +1425,16 @@ static int ...@@ -1425,7 +1425,16 @@ static int
snap_print(struct recovery_state *r __unused__, struct tbuf *t) snap_print(struct recovery_state *r __unused__, struct tbuf *t)
{ {
struct tbuf *out = tbuf_alloc(t->pool); struct tbuf *out = tbuf_alloc(t->pool);
struct box_snap_row *row = box_snap_row(t); struct box_snap_row *row;
struct row_v11 *raw_row = row_v11(t);
struct tbuf *b = palloc(fiber->pool, sizeof(*b));
b->data = raw_row->data;
b->len = raw_row->len;
(void)read_u16(b);
row = box_snap_row(b);
tuple_print(out, row->tuple_size, row->data); tuple_print(out, row->tuple_size, row->data);
printf("n:%i %*s\n", row->namespace, (int)out->len, (char *)out->data); printf("n:%i %*s\n", row->namespace, (int)out->len, (char *)out->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