1
0
Fork 0

remove unused file-backed implementation

This commit is contained in:
jsteemann 2017-01-31 18:02:00 +01:00
parent fc4977157d
commit c5f2f5e1e8
1 changed files with 5 additions and 0 deletions

View File

@ -214,6 +214,8 @@ struct IndexBucket {
int allocateTempfile(char*& filename, size_t filesize) {
TRI_ASSERT(filename == nullptr);
return -1;
#if 0
if (filesize < FileBackedThreshold) {
// use new/malloc
return -1;
@ -238,9 +240,11 @@ struct IndexBucket {
}
return fd;
#endif
}
void deallocateTempfile() {
#if 0
if (_file >= 0) {
// close file pointer and reset fd
TRI_CLOSE(_file);
@ -252,6 +256,7 @@ struct IndexBucket {
_filename = nullptr;
}
TRI_ASSERT(_file == -1);
#endif
}
};