Don't ignore non-virtual NSC_EXTRA columns in ef_verify.c

These are commonly timestamps (no verification implemented), or
aliases for a non-extra column (which gets verified).  Commit 49780e2c
(v4.3.12) added the exception: EF_SECTOR's uid.  Proof by example that
ignoring these columns is wrong.  Fix: ignore only virtual columns.
This commit is contained in:
Markus Armbruster 2011-04-23 19:28:57 +02:00
parent ed715061be
commit e1caa11733

View file

@ -114,8 +114,8 @@ verify_row(int type, int row)
} }
for (i = 0; ca[i].ca_name; ++i) { for (i = 0; ca[i].ca_name; ++i) {
if (ca[i].ca_flags & NSC_EXTRA) if (ca[i].ca_get)
continue; continue; /* virtual */
n = ca[i].ca_type != NSC_STRINGY ? ca[i].ca_len : 0; n = ca[i].ca_type != NSC_STRINGY ? ca[i].ca_len : 0;
j = 0; j = 0;
do { do {