mirror of https://gitee.com/bigwinds/arangodb
remove unused file-backed implementation
This commit is contained in:
parent
fc4977157d
commit
c5f2f5e1e8
|
@ -214,6 +214,8 @@ struct IndexBucket {
|
||||||
int allocateTempfile(char*& filename, size_t filesize) {
|
int allocateTempfile(char*& filename, size_t filesize) {
|
||||||
TRI_ASSERT(filename == nullptr);
|
TRI_ASSERT(filename == nullptr);
|
||||||
|
|
||||||
|
return -1;
|
||||||
|
#if 0
|
||||||
if (filesize < FileBackedThreshold) {
|
if (filesize < FileBackedThreshold) {
|
||||||
// use new/malloc
|
// use new/malloc
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -238,9 +240,11 @@ struct IndexBucket {
|
||||||
}
|
}
|
||||||
|
|
||||||
return fd;
|
return fd;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void deallocateTempfile() {
|
void deallocateTempfile() {
|
||||||
|
#if 0
|
||||||
if (_file >= 0) {
|
if (_file >= 0) {
|
||||||
// close file pointer and reset fd
|
// close file pointer and reset fd
|
||||||
TRI_CLOSE(_file);
|
TRI_CLOSE(_file);
|
||||||
|
@ -252,6 +256,7 @@ struct IndexBucket {
|
||||||
_filename = nullptr;
|
_filename = nullptr;
|
||||||
}
|
}
|
||||||
TRI_ASSERT(_file == -1);
|
TRI_ASSERT(_file == -1);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue