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

Method ensureGuid

src/jrd/Database.cpp:379–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377 }
378
379 void Database::ensureGuid(thread_db* tdbb)
380 {
381 if (readOnly())
382 return;
383
384 if (!dbb_guid.Data1) // It would be better to full check but one field should be enough
385 {
386 GenerateGuid(&dbb_guid);
387 PAG_set_db_guid(tdbb, dbb_guid);
388 }
389 }
390
391 FB_UINT64 Database::getReplSequence(thread_db* tdbb)
392 {

Callers 1

ManagerMethod · 0.80

Calls 2

PAG_set_db_guidFunction · 0.85
GenerateGuidFunction · 0.50

Tested by

no test coverage detected