ClickHouse/dbms/Disks/tests/gtest_disk.h

22 lines
436 B
C++
Raw Normal View History

2020-01-28 16:08:30 +00:00
#include <Disks/DiskLocal.h>
#include <Disks/DiskMemory.h>
2020-01-28 16:09:24 +00:00
#include <Disks/IDisk.h>
2020-01-28 16:08:30 +00:00
template <typename T>
DB::DiskPtr createDisk();
template <>
DB::DiskPtr createDisk<DB::DiskMemory>();
template <>
DB::DiskPtr createDisk<DB::DiskLocal>();
template <typename T>
void destroyDisk(DB::DiskPtr & disk);
template <>
void destroyDisk<DB::DiskLocal>(DB::DiskPtr & disk);
template <>
void destroyDisk<DB::DiskMemory>(DB::DiskPtr & disk);