From 27512fd092a2f11964dd83f5101511f5faead42a Mon Sep 17 00:00:00 2001 From: Roman Tsisyk <roman@tsisyk.com> Date: Mon, 26 Nov 2012 16:51:28 +0400 Subject: [PATCH] Remove unneeded check for the number of fields in tuples from space_validate --- src/box/request.m | 1 + src/box/space.m | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/box/request.m b/src/box/request.m index cc5c912e62..fbf7a0f482 100644 --- a/src/box/request.m +++ b/src/box/request.m @@ -88,6 +88,7 @@ execute_replace(struct request *request, struct txn *txn) /* Try to find tuple by primary key */ Index *pk = space_index(sp, 0); + /* Check to see if the tuple has a sufficient number of fields. */ if (unlikely(txn->new_tuple->field_count < sp->max_fieldno)) { tnt_raise(IllegalParams, :"tuple must have all indexed fields"); } diff --git a/src/box/space.m b/src/box/space.m index 5a08e1b2e9..c26ddecc06 100644 --- a/src/box/space.m +++ b/src/box/space.m @@ -141,10 +141,6 @@ space_validate(struct space *sp, struct tuple *old_tuple, return; } - /* Check to see if the tuple has a sufficient number of fields. */ - if (new_tuple->field_count < sp->max_fieldno) - tnt_raise(IllegalParams, :"tuple must have all indexed fields"); - if (sp->arity > 0 && sp->arity != new_tuple->field_count) tnt_raise(IllegalParams, :"tuple field count must match space cardinality"); -- GitLab