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

Method bindConnection

src/jrd/extds/ExtDS.cpp:379–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377}
378
379void Provider::bindConnection(thread_db* tdbb, Connection* conn)
380{
381 Attachment* attachment = tdbb->getAttachment();
382 MutexLockGuard guard(m_mutex, FB_FUNCTION);
383
384 Attachment* oldAtt = conn->getBoundAtt();
385 fb_assert(oldAtt == NULL);
386 if (m_connections.locate(AttToConn(oldAtt, conn)))
387 m_connections.fastRemove();
388
389 conn->setBoundAtt(attachment);
390 bool ret = m_connections.add(AttToConn(attachment, conn));
391 fb_assert(ret);
392}
393
394Connection* Provider::getBoundConnection(Jrd::thread_db* tdbb,
395 const Firebird::PathName& dbName, Firebird::ClumpletReader& dpb,

Callers 1

getConnectionMethod · 0.80

Calls 7

AttToConnClass · 0.85
getBoundAttMethod · 0.80
setBoundAttMethod · 0.80
getAttachmentMethod · 0.45
locateMethod · 0.45
fastRemoveMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected