From e1caa1173317a408685a2012d3fad9d73f759a9f Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 23 Apr 2011 19:28:57 +0200 Subject: [PATCH] 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. --- src/lib/common/ef_verify.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/common/ef_verify.c b/src/lib/common/ef_verify.c index 2b79f4d2..a938aca3 100644 --- a/src/lib/common/ef_verify.c +++ b/src/lib/common/ef_verify.c @@ -114,8 +114,8 @@ verify_row(int type, int row) } for (i = 0; ca[i].ca_name; ++i) { - if (ca[i].ca_flags & NSC_EXTRA) - continue; + if (ca[i].ca_get) + continue; /* virtual */ n = ca[i].ca_type != NSC_STRINGY ? ca[i].ca_len : 0; j = 0; do {