Skip to content
Snippets Groups Projects
Commit e904199f authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

lua: add a comment to the new implementation of box.tuple.transform()

A follow up for the patch for gh-3051
parent a377332a
No related branches found
No related tags found
No related merge requests found
......@@ -415,6 +415,13 @@ lbox_tuple_transform(struct lua_State *L)
struct region *region = &fiber()->gc;
size_t used = region_used(region);
struct tuple *new_tuple = NULL;
/*
* Can't use box_tuple_update() since transform must reset
* the tuple format to default. The new tuple most likely
* won't coerce into the original space format, so we have
* to use the default one with no restrictions on field
* count or types.
*/
const char *new_data = tuple_update_execute(region_aligned_alloc_cb,
region, buf->buf,
buf->buf + ibuf_used(buf),
......
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