From 003bdd30f2c15af65af9b08160052acb259b79fa Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 8 Nov 2007 01:22:58 +0000 Subject: [PATCH] avoiding initial deadlock git-svn-id: http://svn.openzap.org/svn/openzap/trunk@324 a93c3328-9c30-0410-af19-c9cd2b2d52af --- libs/openzap/src/zap_io.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/openzap/src/zap_io.c b/libs/openzap/src/zap_io.c index fe0c0a6d07..09d4727dc6 100644 --- a/libs/openzap/src/zap_io.c +++ b/libs/openzap/src/zap_io.c @@ -303,10 +303,9 @@ zap_status_t zap_span_create(zap_io_interface_t *zio, zap_span_t **span) *span = new_span; status = ZAP_SUCCESS; } - zap_mutex_unlock(globals.mutex); done: - + zap_mutex_unlock(globals.mutex); return status; }