Skip to content
Snippets Groups Projects
Commit 28fc6184 authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

Check tuple cardinality when recovering from snapshots (see Bug#1082356)

parent 27512fd0
No related merge requests found
......@@ -270,6 +270,10 @@ recover_snap_row(struct tbuf *t)
struct space *space = space_find(row->space);
Index *index = space_index(space, 0);
/* Check to see if the tuple has a sufficient number of fields. */
if (unlikely(tuple->field_count < space->max_fieldno)) {
tnt_raise(IllegalParams, :"tuple must have all indexed fields");
}
[index buildNext: tuple];
tuple_ref(tuple, 1);
}
......
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