+ unsigned flags = 0;
+
+ if (!spec || *spec == '\0'
+ || !strcmp(spec, "dict") || !strcmp(spec, "default"))
+ flags = ZEBRA_CHECK_DICT;
+ else if (!strcmp(spec, "isam") || !strcmp(spec, "full"))
+ flags = ZEBRA_CHECK_DICT|ZEBRA_CHECK_ISAM;
+ else if (!strcmp(spec, "quick"))
+ flags = 0;
+ else
+ {
+ yaz_log(YLOG_WARN, "Unknown check spec: %s", spec);
+ return ZEBRA_FAIL;
+ }
+
+ yaz_log(YLOG_LOG, "zebra_register_check begin flags=%u", flags);