MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / open_file

Function open_file

mysys/mf_iocache.c:1890–1898  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1888}
1889
1890int open_file(const char* fname, IO_CACHE* info, int cache_size)
1891{
1892 int fd;
1893 if ((fd=my_open(fname,O_CREAT | O_RDWR,MYF(MY_WME))) < 0)
1894 die("Could not open %s", fname);
1895 if (init_io_cache(info, fd, cache_size, SEQ_READ_APPEND, 0,0,MYF(MY_WME)))
1896 die("failed in init_io_cache()");
1897 return fd;
1898}
1899
1900void close_file(IO_CACHE* info)
1901{

Callers 1

mainFunction · 0.70

Calls 3

my_openFunction · 0.85
init_io_cacheFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected