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

Method OpenColumnFile

storage/connect/filamvct.cpp:2011–2031  ·  view source on GitHub ↗

/ Open the file corresponding to one column. */ /

Source from the content-addressed store, hash-verified

2009/* Open the file corresponding to one column. */
2010/***********************************************************************/
2011bool VECFAM::OpenColumnFile(PGLOBAL g, PCSZ opmode, int i)
2012 {
2013 char filename[_MAX_PATH];
2014 PDBUSER dup = PlgGetUser(g);
2015
2016 snprintf(filename, _MAX_PATH, Colfn, i+1);
2017
2018 if (!(Streams[i] = PlugOpenFile(g, filename, opmode))) {
2019 if (trace(1))
2020 htrc("%s\n", g->Message);
2021
2022 return (Tdbp->GetMode() == MODE_READ && errno == ENOENT)
2023 ? PushWarning(g, Tdbp) : true;
2024 } // endif Streams
2025
2026 if (trace(1))
2027 htrc("File %s is open in mode %s\n", filename, opmode);
2028
2029 To_Fbs[i] = dup->Openlist; // Keep track of File blocks
2030 return false;
2031 } // end of OpenColumnFile
2032
2033/***********************************************************************/
2034/* Allocate the block buffers for columns used in the query. */

Callers

nothing calls this directly

Calls 4

PlgGetUserFunction · 0.85
PlugOpenFileFunction · 0.85
PushWarningFunction · 0.85
htrcFunction · 0.70

Tested by

no test coverage detected