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

Method registerManager

src/jrd/UserManagement.cpp:186–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184
185
186IManagement* UserManagement::registerManager(Auth::Get& getPlugin, const char* plugName)
187{
188 IManagement* manager = getPlugin.plugin();
189 fb_assert(manager);
190
191 // Start new management plugin ...
192 LocalStatus status;
193 CheckStatusWrapper statusWrapper(&status);
194
195 UserIdInfo idInfo(att, tra);
196 ChangeCharset cc(att);
197 manager->start(&statusWrapper, &idInfo);
198 if (status.getState() & IStatus::STATE_ERRORS)
199 {
200 status_exception::raise(&statusWrapper);
201 }
202
203 // ... and store it in cache
204 Manager& m(managers.add());
205 m.first = plugName;
206 m.second = manager;
207 manager->addRef();
208
209 return manager;
210}
211
212
213IManagement* UserManagement::getManager(const char* name)

Callers

nothing calls this directly

Calls 6

raiseFunction · 0.85
pluginMethod · 0.80
startMethod · 0.45
getStateMethod · 0.45
addMethod · 0.45
addRefMethod · 0.45

Tested by

no test coverage detected