Skip to content

Commit

Permalink
CBL-5711 : Add note that replicators cannot be started in a transaction
Browse files Browse the repository at this point in the history
Added note that replicators cannot be started in a transaction.
  • Loading branch information
pasin committed Jun 3, 2024
1 parent 475e06c commit b74c491
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/cbl++/Replicator.hh
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ namespace cbl {
}

/** Starts a replicator, asynchronously. Does nothing if it's already started.
@note Replicators cannot be started from within a database's transaction.
@param resetCheckpoint If true, the persistent saved state ("checkpoint") for this replication
will be discarded, causing it to re-scan all documents. This significantly
increases time and bandwidth (redundant docs are not transferred, but their
Expand Down
1 change: 1 addition & 0 deletions include/cbl/CBLReplicator.h
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ CBLReplicator* _cbl_nullable CBLReplicator_Create(const CBLReplicatorConfigurati
const CBLReplicatorConfiguration* CBLReplicator_Config(CBLReplicator*) CBLAPI;

/** Starts a replicator, asynchronously. Does nothing if it's already started.
@note Replicators cannot be started from within a database's transaction.
@param replicator The replicator instance.
@param resetCheckpoint If true, the persistent saved state ("checkpoint") for this replication
will be discarded, causing it to re-scan all documents. This significantly
Expand Down

0 comments on commit b74c491

Please sign in to comment.