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

Method TimeZoneSnapshot

src/jrd/TimeZone.cpp:34–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33
34TimeZoneSnapshot::TimeZoneSnapshot(thread_db* tdbb, MemoryPool& pool)
35 : SnapshotData(pool)
36{
37 RecordBuffer* tzBuffer = allocBuffer(tdbb, pool, rel_time_zones);
38 Record* tzRecord = tzBuffer->getTempRecord();
39 tzRecord->nullify();
40
41 TimeZoneUtil::iterateRegions(
42 [=]
43 (USHORT id, const char* name)
44 {
45 SINT64 idValue = id;
46
47 putField(tdbb, tzRecord, DumpField(f_tz_id, VALUE_INTEGER, sizeof(idValue), &idValue));
48 putField(tdbb, tzRecord, DumpField(f_tz_name, VALUE_STRING, static_cast<USHORT>(strlen(name)), name));
49 tzBuffer->store(tzRecord);
50 }
51 );
52}
53
54
55//--------------------------------------

Callers

nothing calls this directly

Calls 4

DumpFieldClass · 0.85
getTempRecordMethod · 0.80
nullifyMethod · 0.80
storeMethod · 0.45

Tested by

no test coverage detected