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-5710: Add note that the replicator cannot be started in the inBatch() function #3286

Merged
merged 1 commit into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all 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: 2 additions & 0 deletions Objective-C/CBLReplicator.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ NS_ASSUME_NONNULL_BEGIN
/**
Starts the replicator. This method returns immediately; the replicator runs asynchronously
and will report its progress through the replicator change notification.

@note This method MUST NOT be called within database's inBatch() block, as it will enter deadlock.
*/
- (void) start;

Expand Down
1 change: 1 addition & 0 deletions Swift/Replicator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ public final class Replicator {

/// Starts the replicator. This method returns immediately; the replicator runs asynchronously
/// and will report its progress through the replicator change notification.
/// - Note: This method MUST NOT be called within database's inBatch() block, as it will enter deadlock.
public func start() {
registerActiveReplicator()
impl.start()
Expand Down
Loading