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

Method openBlobFunction

src/jrd/BlobUtil.cpp:145–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145void BlobUtilPackage::openBlobFunction(ThrowStatusExceptionWrapper* status,
146 IExternalContext* context, const BlobMessage::Type* in, HandleMessage::Type* out)
147{
148 const auto tdbb = JRD_get_thread_data();
149 const auto transaction = tdbb->getTransaction();
150
151 const auto blobId = *(bid*) &in->blob;
152 const auto blob = blb::open(tdbb, transaction, &blobId);
153
154 transaction->tra_blob_util_map.put(++transaction->tra_blob_util_next, blob);
155
156 out->handleNull = FB_FALSE;
157 out->handle = transaction->tra_blob_util_next;
158}
159
160void BlobUtilPackage::seekFunction(ThrowStatusExceptionWrapper* status,
161 IExternalContext* context, const SeekInput::Type* in, SeekOutput::Type* out)

Callers

nothing calls this directly

Calls 4

JRD_get_thread_dataFunction · 0.85
openFunction · 0.50
getTransactionMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected