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

Several fixes #289

Merged
merged 4 commits into from
May 9, 2024
Merged

Several fixes #289

merged 4 commits into from
May 9, 2024

Conversation

bmeike
Copy link
Contributor

@bmeike bmeike commented May 9, 2024

This is bigger than it should be. Sorry about that. The native crash is the biggest fix. The ClientTask fix is more contained but, perhaps, more important. The rest is just preening.

CBL-5729: Prevent native crash on unknown log domain
CBL-5714: API Doc: Can't start a replicator inside a batch block
CBL-5658: Tune the ClientTask executor
CBL-5651: Tests for LiteCore callbacks

@bmeike bmeike requested review from pasin and borrrden May 9, 2024 21:18
@bmeike bmeike self-assigned this May 9, 2024
namespace jni {
static std::unordered_set<std::string> gDomainNames;

// Assert: jdomain is not null
Copy link
Member

Choose a reason for hiding this comment

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

null would be fine, LiteCore auto maps null to empty string aka default

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this will fail on null:
std::string domain = JstringToUTF8(env, jdomain);

@bmeike bmeike merged commit 4d28080 into master May 9, 2024
@bmeike bmeike deleted the pr/CBL-5729 branch May 9, 2024 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants