Fixed bad unlock in commit clean phase
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 28 Jun 2006 09:44:12 +0000 (09:44 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 28 Jun 2006 09:44:12 +0000 (09:44 +0000)
index/zebraapi.c

index d3eb96a..4853b50 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: zebraapi.c,v 1.120.2.12 2006-04-04 00:06:46 adam Exp $
+/* $Id: zebraapi.c,v 1.120.2.13 2006-06-28 09:44:12 adam Exp $
    Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
    Index Data Aps
 
@@ -1747,7 +1747,7 @@ static int 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
     {