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

Function locate

src/jrd/Mapping.cpp:559–571  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

557void setupIpc();
558
559void locate(RefPtr<Mapping::Cache>& cache, const NoCaseString& alias, const NoCaseString& target)
560{
561 fb_assert(treeMutex->locked());
562 fb_assert(!cache);
563 tree().get(target, cache);
564 if (!cache)
565 {
566 cache = FB_NEW Mapping::Cache(alias, target);
567 *(tree().put(target)) = cache;
568
569 setupIpc();
570 }
571}
572
573class Found
574{

Callers 7

ensureCachePresenceMethod · 0.85
locateMethod · 0.85
addMethod · 0.85
lookupMethod · 0.85
removeMethod · 0.85
locateMethod · 0.85
locateMethod · 0.85

Calls 5

CacheClass · 0.85
setupIpcFunction · 0.85
lockedMethod · 0.45
getMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected