MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / createReplicator

Method createReplicator

src/remote/client/interface.cpp:3503–3539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3501
3502
3503Replicator* Attachment::createReplicator(CheckStatusWrapper* status)
3504{
3505/**************************************
3506 *
3507 * c r e a t e R e p l i c a t o r
3508 *
3509 **************************************
3510 *
3511 * Functional description
3512 * Create data replication interface.
3513 *
3514 **************************************/
3515
3516 try
3517 {
3518 reset(status);
3519
3520 // Check and validate handles, etc.
3521 CHECK_HANDLE(rdb, isc_bad_db_handle);
3522 rem_port* port = rdb->rdb_port;
3523
3524 if (port->port_protocol < PROTOCOL_VERSION16)
3525 unsupported();
3526
3527 if (!replicator)
3528 replicator = FB_NEW Replicator(this);
3529
3530 replicator->addRef();
3531 return replicator;
3532 }
3533 catch (const Exception& ex)
3534 {
3535 ex.stuffException(status);
3536 }
3537
3538 return NULL;
3539}
3540
3541
3542void Replicator::process(CheckStatusWrapper* status, unsigned length, const unsigned char* data)

Callers 2

replicateMethod · 0.45
initReplicaMethod · 0.45

Calls 6

CHECK_HANDLEFunction · 0.85
unsupportedFunction · 0.85
resetFunction · 0.70
ReplicatorClass · 0.70
addRefMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected