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

Method attach

src/jrd/CryptoManager.cpp:875–890  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

873 }
874
875 void CryptoManager::attach(thread_db* tdbb, Attachment* att)
876 {
877 if (checkFactory)
878 {
879 if (!validateAttachment(tdbb, att, false))
880 {
881 MutexLockGuard g(holdersMutex, FB_FUNCTION);
882
883 if (!keyProviders.hasData())
884 Arg::Gds(isc_db_crypt_key).raise();
885 keyConsumers.add(att->getStable());
886 }
887 }
888
889 lockAndReadHeader(tdbb, CRYPT_HDR_INIT);
890 }
891
892 void CryptoManager::detach(thread_db* tdbb, Attachment* att)
893 {

Callers

nothing calls this directly

Calls 5

GdsClass · 0.85
hasDataMethod · 0.45
raiseMethod · 0.45
addMethod · 0.45
getStableMethod · 0.45

Tested by

no test coverage detected