| 3501 | |
| 3502 | |
| 3503 | Replicator* 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 | |
| 3542 | void Replicator::process(CheckStatusWrapper* status, unsigned length, const unsigned char* data) |
no test coverage detected