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

Got it to build. Getting into to some header file madness, but moving on.

This commit is contained in:
Patrick LeBlanc
2019-03-27 17:44:50 -05:00
parent 6bd4b60a7b
commit a813581567
6 changed files with 50 additions and 53 deletions

View File

@@ -4,7 +4,6 @@
namespace storagemanager
{
ScopedReadLock::ScopedReadLock(IOCoordinator *i, const std::string &k) : ioc(i), key(k)
{
lock();
@@ -61,25 +60,6 @@ ScopedCloser::~ScopedCloser() {
::close(fd);
errno = s_errno;
}
struct SharedCloser
{
public:
SharedCloser(int f);
SharedCloser(const SharedCloser &);
~SharedCloser();
private:
struct CtrlBlock
{
int fd;
uint refCount;
};
CtrlBlock *block;
};
SharedCloser::SharedCloser(int f)
{
@@ -88,7 +68,7 @@ SharedCloser::SharedCloser(int f)
block->refCount = 1;
}
SharedCloser(const SharedCloser &s) : block(s.block)
SharedCloser::SharedCloser(const SharedCloser &s) : block(s.block)
{
block->refCount++;
}