From 7958b37bc92a9d9fdbd908c9b108f6608fe2fb78 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Wed, 12 Sep 2007 14:08:42 +0000 Subject: [PATCH] rails_port_0.5/006_remove_segments_helper: Ignore more tags when deciding which segments to convert. --- db/migrate/006_remove_segments_helper.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/db/migrate/006_remove_segments_helper.cc b/db/migrate/006_remove_segments_helper.cc index b62f7cbc0..dd2176a04 100644 --- a/db/migrate/006_remove_segments_helper.cc +++ b/db/migrate/006_remove_segments_helper.cc @@ -411,7 +411,12 @@ static void mark_tagged_segs(struct data *d) { if (d->rem_segs[id]) continue; char *tags_it = row[1], *k, *v; while (read_seg_tags(&tags_it, &k, &v)) { - if (!strcmp(k, "created_by")) { + if (strcmp(k, "created_by") && + strcmp(k, "tiger:county") && + strcmp(k, "tiger:upload_uuid") && + strcmp(k, "converted_by") && + (strcmp(k, "natural") || strcmp(v, "coastline")) && + (strcmp(k, "source") || strcmp(v, "PGS"))) { d->rem_segs[id] = 1; break; } -- 2.39.5