Verbose level for register check
[idzebra-moved-to-github.git] / index / zebraidx.c
index a521e73..a9efb40 100644 (file)
@@ -177,6 +177,16 @@ int main(int argc, char **argv)
                 {
                     show_filters(zs);
                 }
+               else if (!strcmp(arg, "check0"))
+               {
+                    if (zebra_register_check(zh, 0) != ZEBRA_OK)
+                        yaz_log(YLOG_WARN, "register check failed");
+               }
+               else if (!strcmp(arg, "check1") || !strcmp(arg, "check"))
+               {
+                    if (zebra_register_check(zh, 1) != ZEBRA_OK)
+                        yaz_log(YLOG_WARN, "register check failed");
+               }
                 else
                 {
                     yaz_log(YLOG_FATAL, "unknown command: %s", arg);