File Metadata
File Metadata
- Mime Type
- text/x-diff
- Storage Engine
- local-disk
- Storage Format
- Raw Data
- Storage Handle
- 23/aa/7df297b3f2860b546225c2db411f
Event Timeline
Comment Actions
At line 133 shouldn't we have used iobuf_cancel there? Would it be possible to call finish_temp_output from iobuf_close or iobuf_cancel instead?
Comment Actions
At line 133 shouldn't we have used iobuf_cancel there?
I don't think so. Here, iobuf is used for input (with fp). Inside proc_packets, it opens output file determining its filename using the input filename. Note that output is not done by iobuf.
After processing of fp has done, the file is renamed (or removed), depending the error-code of proc_packets.
Would it be possible to call finish_temp_output from iobuf_close
We could introduce new function iobuf_close_with (fp, err) to provide the error-code of the process. Or else, we need to change all the occurence of iobuf_close call.