Skip to content

Enable Snappy compression support in LevelDb in cmake builds #885

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

Merged
merged 13 commits into from
Apr 12, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmake/external/firestore_snappy.patch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ index b71a77535..2556d7041 100644
endif()

-set(version 1.22)
+set(version e0d5f83a4f80060fe5b5d80025f0ad049bca430e)
+set(version 1.23)
+
+ExternalProject_Get_property(snappy SOURCE_DIR)
+set(snappy_source_dir "${SOURCE_DIR}")
Expand Down
2 changes: 2 additions & 0 deletions release_build_files/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,8 @@ code.
## Release Notes
### Upcoming Release
- Changes
- Firestore/Database (Desktop): Upgrade LevelDb dependency to 1.23
([#886](https://github.com/firebase/firebase-cpp-sdk/pull/886)).
- Firestore (desktop): Enabled Snappy compression support in LevelDb
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this enabled in RTDB now as well? (I noticed the linker error happened in the database integration test too, so it may be using it in both?

Copy link
Contributor

@jonsimantov jonsimantov Apr 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also a nit: Desktop and LevelDB need more capital letters (I think probably also fix LevelDB above)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. In cmake, if Firestore is included in the build then both RTDB and Firestore share the LevelDb library from Firestore. However, if Firestore is excluded from the build then RTDB will use a LevelDb without Snappy support. We should probably do something about this. We had a meeting yesterday where it sounded like a good idea might be to unconditionally download the firebase_ios_sdk and use LevelDb from it regardless of whether or not Firestore is being used. Would you like to hold off merging this until we figure that out?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wait, I see you were pointing out that the release notes entry needed a correction. I've updated it in 8bb6bf5.

([#885](https://github.com/firebase/firebase-cpp-sdk/pull/885)).

Expand Down