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

Method removeMapFile

src/common/isc_sync.cpp:1127–1146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1125
1126
1127void SharedMemoryBase::removeMapFile()
1128{
1129 fb_assert(sh_mem_header);
1130
1131 if (!sh_mem_header->isDeleted())
1132 {
1133#ifndef WIN_NT
1134 FileLockHolder initLock(initFile);
1135 if (!sh_mem_header->isDeleted())
1136 {
1137 unlinkFile();
1138 sh_mem_header->markAsDeleted();
1139 }
1140#else
1141 fb_assert(!sh_mem_unlink);
1142 sh_mem_unlink = true;
1143 sh_mem_header->markAsDeleted();
1144#endif // WIN_NT
1145 }
1146}
1147
1148void SharedMemoryBase::unlinkFile()
1149{

Callers 8

~LockManagerMethod · 0.80
~ProfilerIpcMethod · 0.80
~MonitoringDataMethod · 0.80
~EventManagerMethod · 0.80
shutdownMethod · 0.80
~ChangeLogMethod · 0.80
shutdownMethod · 0.80
~TraceLogMethod · 0.80

Calls 2

isDeletedMethod · 0.80
markAsDeletedMethod · 0.80

Tested by

no test coverage detected