avoid hang when creating an object in non-existing bucket
commit114b3cb856c58f24af540c6e9153f42e833c67d2
authorPete Zaitcev <zaitcev@redhat.com>
Fri, 4 Feb 2011 23:53:26 +0000 (4 16:53 -0700)
committerJim Meyering <meyering@redhat.com>
Mon, 7 Feb 2011 18:28:04 +0000 (7 19:28 +0100)
tree968d1f0bdd950796b8644bed9f0a47f0b65cf255
parentf22452b530a85b36a50cc8f7dc9fb9ea8387389b
avoid hang when creating an object in non-existing bucket

This hang occurs when doing something like the following, without
creating "templates" first:
 echo hello | curl -T - http://lembas:9090/templates/my_file

This bug appears to have been introduced due to an incomplete
change during the cons_error/cons_init_error split.

* mpipe.c (pipe_cons_siginit):  Use cons_init_done, not cons_init.
(pipe_prod_wait_init): Use cons_init_error, not cons_init.
* t/basic: add test for hang-no-parent bug
mpipe.c
t/basic