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

Method setAttachment

examples/replication/fbSampleReplicator.cpp:221–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221void ReplPlugin::setAttachment(IAttachment* attachment)
222{
223 WriteLog(log, "%p\tAssigned attachment %p\n", this, attachment);
224 att = attachment;
225 att->addRef();
226 CheckStatusWrapper ExtStatus(status);
227 const unsigned char items[] = { fb_info_db_guid };
228 unsigned char response[80];
229 att->getInfo(&ExtStatus, sizeof(items), items, sizeof(response), response);
230 if (status->getState() == 0)
231 {
232 dumpInfo(response, sizeof(response));
233 }
234}
235
236IReplicatedTransaction* ReplPlugin::startTransaction(ITransaction* transaction, ISC_INT64 number)
237{

Callers

nothing calls this directly

Calls 3

addRefMethod · 0.45
getInfoMethod · 0.45
getStateMethod · 0.45

Tested by

no test coverage detected