+29
−13
Loading
WARNING! GitLab maintenance operation scheduled for this Friday between 14:00 and 19:00 (CET). During this time window, GitLab will be unavailable, and any data entered during this period may be lost. Thank you in advance for your understanding.
that broke it. Unfortunately, fixing the oversight "the right way" is almost as ugly as the original code; it's easier to just go back to the way it was, at least for now. The problem is that the original code would delete buckets from foo through bar in the brigade, and the patched code deletes *everything* up through bar, which is bad. I could have fixed it by doing two splits, but that introduces too many palloc's for my taste. It's also fixable with RING macros, but I refuse to start using RING macros directly on brigades. The best solution would be if there were a brigade equivalent to a RING_UNSPLICE/ RING_INSERT_HEAD sequence (this sequence is also used interally by apr_brigade_split(), btw), something like this: APR_BRIGADE_TRANSFER_BUCKETS(oldbrigade,newbrigade,startbucket,endbucket); Absent that, the affected parts of the patch are hereby reverted (grumble, grumble). If people liek the APR_BRIGADE_TRANSFER_BUCKETS() idea, I'll implement that and repatch mod_include later. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88909 13f79535-47bb-0310-9956-ffa450edef68