Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couchdb 3288 mixed cluster upgrade #495

Merged
merged 9 commits into from
Sep 27, 2017
Prev Previous commit
Handle attachments downgrades in a mixed cluster environment
Previously attachment uploading from a PSE to non-PSE node would
fail as the attachment streaming API changed between version.

This commit handles downgrading attachment streams from PSE nodes so that
non-PSE nodes can write them.

COUCHDB-3288
  • Loading branch information
nickva authored and davisp committed Sep 27, 2017
commit 49b05fe5aa017a624cc323f15afc0972882bed54
3 changes: 3 additions & 0 deletions src/couch/src/couch_att.erl
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,9 @@ flush(Fd, Att) ->
flush_data(Fd, fetch(data, Att), Att).


flush_data(Fd, {stream, {couch_bt_engine_stream, {OtherFd, StreamPointer}}},
Att) ->
flush_data(Fd, {OtherFd, StreamPointer}, Att);
flush_data(Fd, {Fd0, _}, Att) when Fd0 == Fd ->
% already written to our file, nothing to write
Att;
Expand Down