1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-17 01:02:23 +03:00

Got a basic unit test to work for IOC::read()

This commit is contained in:
Patrick LeBlanc
2019-03-28 14:13:21 -05:00
parent 28ccac81c4
commit e164cbc364
7 changed files with 180 additions and 14 deletions

View File

@@ -4,7 +4,7 @@
namespace storagemanager
{
ScopedReadLock::ScopedReadLock(IOCoordinator *i, const std::string &k) : ioc(i), key(k)
ScopedReadLock::ScopedReadLock(IOCoordinator *i, const std::string &k) : ioc(i), key(k), locked(false)
{
lock();
}
@@ -29,7 +29,7 @@ void ScopedReadLock::unlock()
}
}
ScopedWriteLock::ScopedWriteLock(IOCoordinator *i, const std::string &k) : ioc(i), key(k)
ScopedWriteLock::ScopedWriteLock(IOCoordinator *i, const std::string &k) : ioc(i), key(k), locked(false)
{
lock();
}