[patch iwhd] hang when creating an object in non-existing bucket
Pete Zaitcev
zaitcev at redhat.com
Fri Feb 4 23:53:26 UTC 2011
This hang occurs when doing something like the following, without
creating "templates" first:
echo hello | curl -T - http://lembas:9090/templates/my_file
Unfortunately, although the mistake is in my code, I do not recall how
I made it. It looks like I forgot to adjust parts of the code when
the divorce of cons_error and cons_init_error occured.
---
mpipe.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
commit 814c2c1189fa321521f98242950977c5e8c7d9e3
Author: Pete Zaitcev <zaitcev at yahoo.com>
Date: Fri Feb 4 16:15:35 2011 -0700
Fix incomplete split of cons_error and cons_init_error.
diff --git a/mpipe.c b/mpipe.c
index a528285..a66cde3 100644
--- a/mpipe.c
+++ b/mpipe.c
@@ -126,7 +126,7 @@ pipe_cons_siginit (pipe_shared *ps, int error)
}
pthread_cond_broadcast(&ps->prod_cond);
DPRINTF("consumer init signal (total %u done %u error %u)\n",
- ps->cons_total,ps->cons_done,ps->cons_error);
+ ps->cons_total,ps->cons_init_done,ps->cons_init_error);
pthread_mutex_unlock(&ps->lock);
}
@@ -146,7 +146,7 @@ pipe_prod_wait_init (pipe_shared *ps)
ps->cons_total,ps->cons_init_done,ps->cons_init_error);
}
pthread_mutex_unlock(&ps->lock);
- return ps->cons_error;
+ return ps->cons_init_error;
}
void
More information about the iwhd-devel
mailing list