MCPcopy Create free account
hub / github.com/MariaDB/server / OpenDB

Method OpenDB

storage/connect/tabsys.cpp:240–275  ·  view source on GitHub ↗

/ INI Access Method opening routine. */ /

Source from the content-addressed store, hash-verified

238/* INI Access Method opening routine. */
239/***********************************************************************/
240bool TDBINI::OpenDB(PGLOBAL g)
241 {
242 PINICOL colp;
243
244 if (Use == USE_OPEN) {
245#if 0
246 if (To_Kindex)
247 /*****************************************************************/
248 /* Table is to be accessed through a sorted index table. */
249 /*****************************************************************/
250 To_Kindex->Reset();
251#endif // 0
252 Section = NULL;
253 N = 0;
254 return false;
255 } // endif use
256
257 /*********************************************************************/
258 /* OpenDB: initialize the INI file processing. */
259 /*********************************************************************/
260 GetSeclist(g);
261 Use = USE_OPEN; // Do it now in case we are recursively called
262
263 /*********************************************************************/
264 /* Allocate the buffers that will contain key values. */
265 /*********************************************************************/
266 for (colp = (PINICOL)Columns; colp; colp = (PINICOL)colp->GetNext())
267 if (!colp->IsSpecial()) // Not a pseudo column
268 colp->AllocBuf(g);
269
270 if (trace(1))
271 htrc("INI OpenDB: seclist=%s seclen=%d ifile=%s\n",
272 Seclist, Seclen, Ifile);
273
274 return false;
275 } // end of OpenDB
276
277/***********************************************************************/
278/* Data Base read routine for INI access method. */

Callers

nothing calls this directly

Calls 5

IsSpecialMethod · 0.80
AllocBufMethod · 0.80
htrcFunction · 0.70
ResetMethod · 0.45
GetNextMethod · 0.45

Tested by

no test coverage detected