| 1888 | } |
| 1889 | |
| 1890 | int 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 | |
| 1900 | void close_file(IO_CACHE* info) |
| 1901 | { |
no test coverage detected