GitHub user iilyak reopened a pull request: https://github.com/apache/couchdb-couch/pull/19
Refactor/multipart stream You can merge this pull request into a Git repository by running: $ git pull https://github.com/iilyak/couchdb-couch refactor/multipart_stream Alternatively you can review and apply these changes as the patch at: https://github.com/apache/couchdb-couch/pull/19.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #19 ---- commit 31ae6cff938ff465f6d047b441c188c40c38636d Author: ILYA Khlopotov <iil...@ca.ibm.com> Date: 2014-11-26T20:43:26Z Move db:open_db_file into db_updater commit 3a17401fe742963be16484eba964e2fd0fd5373c Author: ILYA Khlopotov <iil...@ca.ibm.com> Date: 2014-11-26T20:50:13Z Create db_updater:delete_db_file commit c9dd01b1281d058359b3c68e59be8a3b0f217c0c Author: ILYA Khlopotov <iil...@ca.ibm.com> Date: 2014-11-26T20:50:47Z Don't try to remove '.compact' file twice on db deletion commit 27b5085e15719a3197173db23f6c01e8311a68be Author: ILYA Khlopotov <iil...@ca.ibm.com> Date: 2014-11-26T20:57:14Z Introduce private db_updater:delete_compaction_files to remove duplication commit 7f7d402d1cb071f50a32acbe6ad3fb0327b53e9b Author: ILYA Khlopotov <iil...@ca.ibm.com> Date: 2014-11-27T22:16:20Z Add test case for doc_from_multi_part_stream commit 1ae3ae45d86bfb7de03d4e247720361d5838f60b Author: ILYA Khlopotov <iil...@ca.ibm.com> Date: 2014-11-27T22:31:06Z Move doc_from_multi_part_stream into httpd_multipart commit 4b5afb34660afa8e7070aab10220e9346f893388 Author: ILYA Khlopotov <iil...@ca.ibm.com> Date: 2014-11-27T23:32:40Z Extract parse_multipart_stream from doc_from_multi_part_stream commit f2e0eb3e7ebea1bcdd00adf2d03cb270b3f4093a Author: ILYA Khlopotov <iil...@ca.ibm.com> Date: 2014-11-27T23:50:32Z Move simplified version of doc_from_multi_part_stream back to couch_doc commit 626ced40e4de58f34540bf460e8a915df52472fa Author: ILYA Khlopotov <iil...@ca.ibm.com> Date: 2014-11-28T18:05:22Z Add test case for doc_to_multi_part_stream commit b5b88dfc63428d62796a1a7b0db911815c184d83 Author: ILYA Khlopotov <iil...@ca.ibm.com> Date: 2014-11-28T18:34:36Z Extract encode_multipart_stream function out of doc_to_multi_part_stream commit a9b81f23418402a52013e0aed0de3f16a6c3c377 Author: ILYA Khlopotov <iil...@ca.ibm.com> Date: 2014-11-28T18:54:03Z Move fetching of atts from atts_to_mp into doc_to_multipart_stream commit d078752831bb59956cdbe1a22d07d850ef58012b Author: ILYA Khlopotov <iil...@ca.ibm.com> Date: 2014-11-28T18:59:18Z Do not calculate AttFun for every att since we use same function for all atts in the doc commit 5f5f46564802720cb3478a007df98e45a4a112dd Author: ILYA Khlopotov <iil...@ca.ibm.com> Date: 2014-11-28T19:07:03Z Remove unnecessary branching commit ff3917af8c2fb130f9c460a18234d5c85cbeb491 Author: ILYA Khlopotov <iil...@ca.ibm.com> Date: 2014-11-28T19:36:59Z Move encode_multipart_stream from couch_doc into couch_httpd_multipart commit 5199e61f9ef9d3296e44c2ff1dae21a8d481a097 Author: ILYA Khlopotov <iil...@ca.ibm.com> Date: 2014-11-28T19:39:56Z Rename parse_multipart_stream into decode_multipart_stream for consistency with encode_multipart_stream commit bffba800a4997eebdd8b3c6c49e99eb3c6f43dd1 Author: ILYA Khlopotov <iil...@ca.ibm.com> Date: 2014-11-28T19:49:39Z Rename abort_multi_part_stream into abort_multipart_stream for consistency commit 1e252be9a37dc5f21729728a26ac38162316510d Author: ILYA Khlopotov <iil...@ca.ibm.com> Date: 2014-11-28T21:07:01Z Extract decode_attributes frunction from doc_to_multi_part_stream commit f832aa2c17c9878deedb3cf44ddbcab4c029ba01 Author: ILYA Khlopotov <iil...@ca.ibm.com> Date: 2014-11-28T21:25:19Z Filter out stub attachments before calculating multipart_stream length commit 5d6cdc364d5958217a4cc9354bd22175eb0683f8 Author: ILYA Khlopotov <iil...@ca.ibm.com> Date: 2014-11-28T21:34:20Z Use decode_attributes in len_doc_to_multi_part_stream commit 2650a76b840d48d0f2bacc851753b6e3bb1c5f04 Author: ILYA Khlopotov <iil...@ca.ibm.com> Date: 2014-11-28T21:36:51Z Fix indentation commit 4a7c4bee324d1802ad45ba9ae015d5f3ba515ecd Author: ILYA Khlopotov <iil...@ca.ibm.com> Date: 2014-11-28T23:05:50Z Add doc:len_doc_to_multi_part_stream test commit ae6172a3aaf7b0b6b375d0168a8c637176c838c0 Author: ILYA Khlopotov <iil...@ca.ibm.com> Date: 2014-11-28T23:46:49Z Length of an att should be passed as int into httpd_multipart:encode_multipart_stream commit be6eebb649b26ad7f8e6a16747b56888b5f7b367 Author: ILYA Khlopotov <iil...@ca.ibm.com> Date: 2014-12-02T23:12:47Z Extract and move multipart specific part of doc:len_doc_to_multi_part_stream into httpd_multipart:length_multipart_stream/3 commit a90e864d13be4a5c9d3996b25b438a8e0df19098 Author: ILYA Khlopotov <iil...@ca.ibm.com> Date: 2014-12-03T18:02:27Z Add deprecation warning for couch_doc:num_mp_writers/1 commit 94826bea107570b53c330c73fe5b699ea529840d Author: ILYA Khlopotov <iil...@ca.ibm.com> Date: 2014-12-03T18:04:46Z Change order of the functions to improve readability ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---