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

CBL-6239: Fixed c4doc_getRevisionBody in a 2.x db w/version vectors #2136

Merged
merged 2 commits into from
Sep 16, 2024

Commits on Sep 12, 2024

  1. CBL-6239: Fixed c4doc_getRevisionBody in a 2.x db

    VectorRecord didn't properly manage the `body` column of a doc from a
    2.x db that doesn't have the `extra` column. In such a db the body is
    the encoded rev tree, not just the current rev. VectorRecord was
    returning that entire slice from its currentRevisionData method.
    
    I added a new member _bodyDocRange, a slice that's just the current
    rev within the _bodyDoc. Normally it's the same as _bodyDoc.data(),
    but in a 2.x doc it encompasses just the current rev body.
    
    Fixes CBL-6239
    snej committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    6c932f2 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2024

  1. Configuration menu
    Copy the full SHA
    a4ada71 View commit details
    Browse the repository at this point in the history