GitHub user iilyak opened a pull request:
https://github.com/apache/couchdb-couch/pull/24
2516 deduplicate attachements on compaction
This is replacing PR https://github.com/apache/couchdb-couch/pull/22
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/iilyak/couchdb-couch
2516-deduplicate-attachements-on-compaction
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/couchdb-couch/pull/24.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 #24
----
commit 30bf4c63bbb7bba604a24b5048fd901eef3413fc
Author: ILYA Khlopotov <[email protected]>
Date: 2014-12-09T21:26:01Z
Test for number of att copies after compaction
Compactor copies same attachment multiple times. This happens in the
case when two docs upload the same attachment. Hence we write a test
before implementing a fix for the problem.
BugzID: 26566
commit af397aa1c23e93c62ad4f115329579a802a2e505
Author: ILYA Khlopotov <[email protected]>
Date: 2014-12-09T22:56:45Z
Pass dict around to store already processed atts
BugxID: 26566
commit 4a60847aba4adeaaa5a44b2bc546921261952889
Author: ILYA Khlopotov <[email protected]>
Date: 2014-12-09T23:11:37Z
Convert map to mapfoldl so we can use Dict passed
BugzID: 26566
commit e992d71ae265ab75ad3724cea7106bb780400dec
Author: ILYA Khlopotov <[email protected]>
Date: 2014-12-10T00:20:59Z
Fix the issue by introducing maybe_copy_att_data
BugzID: 26566
commit 36ff5b57085b5e93ce8aca09bace1bfd1ea690b5
Author: ILYA Khlopotov <[email protected]>
Date: 2014-12-10T00:44:18Z
Extract read_doc_with_atts function
BugzID: 26566
commit 8bf571b5f2913c73d65f59c49daff5c425629656
Author: ILYA Khlopotov <[email protected]>
Date: 2014-12-10T20:31:22Z
Use `if` instead of `case` in read_doc_with_atts/2
BugzID: 26566
commit 707ba995227c7a69b5094cc0639eb5f5ce908ba2
Author: ILYA Khlopotov <[email protected]>
Date: 2014-12-12T16:34:35Z
Rename Dict to ProcAcc
commit 38fea4f24e823d2a4a2a6ce8fc0e2960065d538b
Author: ILYA Khlopotov <[email protected]>
Date: 2014-12-12T16:35:36Z
Change mapfoldr to mapfoldl
commit b79d9e11aeeb7d007417496478186da197373ea7
Author: ILYA Khlopotov <[email protected]>
Date: 2014-12-12T16:38:20Z
rename D -> GlobalProcessed
commit 333921f322e4744dd7f826fea932adc0b4e13ce7
Author: ILYA Khlopotov <[email protected]>
Date: 2014-12-12T23:48:07Z
Make state used by add_sizes_acc more opaque for the caller
commit 64c8194603e7b07ed3619f64babfd88787a1e8b4
Author: ILYA Khlopotov <[email protected]>
Date: 2014-12-13T00:23:37Z
Refactor add_sizes to return #size_info records
commit 027b2adfe77ff4c55db607bbf7f21553f3470735
Author: ILYA Khlopotov <[email protected]>
Date: 2014-12-13T00:26:46Z
Return New flag back to copy_docs when attachment is new (not shared)
commit 0b7fb48ddb2fc7aa7bb56e4cb89fa03654eaf8cc
Author: ILYA Khlopotov <[email protected]>
Date: 2014-12-15T17:53:16Z
Fix calculation of active size for case of sharing att
commit e731559ed3d26978ef099d80cc2451b9f75d73c7
Author: ILYA Khlopotov <[email protected]>
Date: 2014-12-15T17:54:25Z
Improve test case
commit 0a5ce8167d89371ba0bffab8fd45e6363c07b316
Author: ILYA Khlopotov <[email protected]>
Date: 2014-12-15T19:20:32Z
Add test case for delete_doc with shared att
----
---
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 [email protected] or file a JIRA ticket
with INFRA.
---