X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzebraapi.c;h=1685caba019dd26c52e9b564183cce449b287bda;hb=7415d28c149c1bab51fe93aeaccdd14085b69bd9;hp=38bc75130621ce38d7544e45bba4b9120882c9a7;hpb=b88909df16157ed1e7859bc3fad6b01520d4865e;p=idzebra-moved-to-github.git diff --git a/index/zebraapi.c b/index/zebraapi.c index 38bc751..1685cab 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -1,4 +1,4 @@ -/* $Id: zebraapi.c,v 1.222 2006-06-13 12:02:12 adam Exp $ +/* $Id: zebraapi.c,v 1.223 2006-06-27 11:56:28 adam Exp $ Copyright (C) 1995-2006 Index Data ApS @@ -181,6 +181,8 @@ ZebraService zebra_start_res (const char *configName, Res def_res, Res over_res) { Res res; + zebra_flock_init(); + if (!log_level_initialized) { log_level = yaz_log_module_level("zebraapi"); @@ -2019,7 +2021,7 @@ static ZEBRA_RES zebra_commit_ex(ZebraHandle zh, int clean_only) zebra_lock_w(zh->lock_shadow); bf_commitClean (bfs, rval); - zebra_unlock (zh->lock_normal); + zebra_unlock (zh->lock_shadow); } else {