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

CBG-749 Backport CBG-471 to 2.7.2 - Pre-2.5 _attachment migration #4535

Merged
merged 1 commit into from
Mar 18, 2020

Conversation

bbrks
Copy link
Member

@bbrks bbrks commented Mar 18, 2020

)

* Unit test repro

* Update test

Return hasPre25Attachments bool from revcache for upgrade case

fix _attachment in test

wip

Remove write part of attachment meta (rely on in-memory moving on each read)

Remove debug

Return error instead of panic

Reorder teardown to prevent panics using walrus

Improve comments, extra assertions on doc syncData

Remove unnecessary changes

* Reuse inject/MergeAttachment functions when injecting attachments into bodyBytes, add new tests to support mixed pre-2.5 and 2.5 meta

* Update to centralise attachment handling in getRevision

Co-authored-by: Adam Fraser <adam.fraser@couchbase.com>
@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 60.855% when pulling 51b5968 on CBG-749 into 86b88d7 on release/2.7.2.

@adamcfraser adamcfraser merged commit 583d2dc into release/2.7.2 Mar 18, 2020
@adamcfraser adamcfraser deleted the CBG-749 branch March 18, 2020 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants