-/* $Id: zebraapi.c,v 1.238 2006-12-18 23:40:07 adam Exp $
- Copyright (C) 1995-2006
+/* $Id: zebraapi.c,v 1.242 2007-01-15 15:10:17 adam Exp $
+ Copyright (C) 1995-2007
Index Data ApS
This file is part of the Zebra server.
}
}
+ zh->timing = yaz_timing_create();
zh->path_root = res_get (zh->global_res, "root");
zh->nmem = nmem_create();
zh->record_classes = recTypeClass_create (zh->global_res, zh->nmem);
sort_type = ZEBRA_SORT_TYPE_ISAMB;
else
{
- yaz_log (YLOG_WARN, "bad_value for 'sort:'");
+ yaz_log (YLOG_WARN, "bad_value for 'sortindex'");
ret = ZEBRA_FAIL;
}
{
if (!zs)
return ZEBRA_OK;
- yaz_log (log_level, "zebra_stop");
-
while (zs->sessions)
{
zebra_close (zs->sessions);
recTypeClass_destroy(zs->record_classes);
nmem_destroy(zs->nmem);
res_close (zs->global_res);
+
+ yaz_timing_stop(zs->timing);
+ yaz_log (YLOG_LOG, "zebra_stop: %4.2f %4.2f %4.2f",
+ yaz_timing_get_real(zs->timing),
+ yaz_timing_get_user(zs->timing),
+ yaz_timing_get_sys(zs->timing));
+
+
+ yaz_timing_destroy(&zs->timing);
xfree(zs);
return ZEBRA_OK;
}