IStorage related build issues
Former-commit-id: 45bc344bfe678a633a005506a690e86ddf2efd5f
This commit is contained in:
parent
31d42faf27
commit
e9bf0c0271
@ -14,7 +14,7 @@ class IStorage
|
||||
public:
|
||||
typedef std::function<void(const char *, size_t, const void *, size_t)> callback;
|
||||
|
||||
virtual ~IStorage() {}
|
||||
virtual ~IStorage();
|
||||
|
||||
virtual void insert(const char *key, size_t cchKey, void *data, size_t cb) = 0;
|
||||
virtual void erase(const char *key, size_t cchKey) = 0;
|
||||
@ -25,7 +25,7 @@ public:
|
||||
virtual void beginWriteBatch() {} // NOP
|
||||
virtual void endWriteBatch() {} // NOP
|
||||
|
||||
virtual void flush();
|
||||
virtual void flush() = 0;
|
||||
|
||||
/* This is permitted to be a shallow clone */
|
||||
virtual const IStorage *clone() const = 0;
|
||||
|
@ -1,5 +1,8 @@
|
||||
#include "server.h"
|
||||
|
||||
|
||||
IStorage::~IStorage() {}
|
||||
|
||||
#ifdef USE_MEMKIND
|
||||
|
||||
#include <stdlib.h>
|
||||
@ -11,6 +14,7 @@
|
||||
#include <inttypes.h>
|
||||
#include <fcntl.h>
|
||||
#include "storage.h"
|
||||
#include "IStorage.h"
|
||||
|
||||
struct memkind *mkdisk = NULL;
|
||||
static const char *PMEM_DIR = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user