Commit f1799d6
committed
Fix atts_since functionality for doc gets
Previously, atts_since didn't work for doc GETs with `open_revs=[...]`
parameters so we always re-replicated all the attachments bodies on every
update, even if the user just updated the doc without touching the attachment.
Our `_revs_diff` endpoint returns the `possible_ancestors` list (which is what
`atts_since` is), the replicator app passes it along to the source, and even
our node-level couch_db API handles `atts_since`, but we somehow never passed
that parameter to the fabric call in the `chttpd_db`. It's like we ran the
whole marathon, then stumbled and fell right before the finish line.1 parent c1a539b commit f1799d6
File tree
3 files changed
+628
-18
lines changed- src/chttpd
- src
- test/eunit
- test/elixir/test
3 files changed
+628
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
986 | 986 | | |
987 | 987 | | |
988 | 988 | | |
989 | | - | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
990 | 995 | | |
991 | 996 | | |
992 | | - | |
993 | | - | |
994 | | - | |
995 | | - | |
996 | | - | |
997 | | - | |
998 | | - | |
999 | 997 | | |
1000 | | - | |
| 998 | + | |
1001 | 999 | | |
1002 | 1000 | | |
1003 | 1001 | | |
| |||
1006 | 1004 | | |
1007 | 1005 | | |
1008 | 1006 | | |
1009 | | - | |
| 1007 | + | |
1010 | 1008 | | |
1011 | 1009 | | |
1012 | 1010 | | |
| |||
1021 | 1019 | | |
1022 | 1020 | | |
1023 | 1021 | | |
1024 | | - | |
| 1022 | + | |
1025 | 1023 | | |
1026 | 1024 | | |
1027 | 1025 | | |
| |||
1038 | 1036 | | |
1039 | 1037 | | |
1040 | 1038 | | |
1041 | | - | |
| 1039 | + | |
1042 | 1040 | | |
1043 | 1041 | | |
1044 | 1042 | | |
| |||
0 commit comments