8000 remove unused file-backed implementation · sleepycat/arangodb@c5f2f5e · GitHub
[go: up one dir, main page]

Skip to content

Commit c5f2f5e

Browse files
committed
remove unused file-backed implementation
1 parent fc49771 commit c5f2f5e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/Basics/IndexBucket.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ struct IndexBucket {
214214
int allocateTempfile(char*& filename, size_t filesize) {
215215
TRI_ASSERT(filename == nullptr);
216216

217+
return -1;
218+
#if 0
217219
if (filesize < FileBackedThreshold) {
218220
// use new/malloc
219221
return -1;
@@ -238,9 +240,11 @@ struct IndexBucket {
238240
}
239241

240242
return fd;
243+
#endif
241244
}
242245

243246
void deallocateTempfile() {
247+
#if 0
244248
if (_file >= 0) {
245249
// close file pointer and reset fd
246250
TRI_CLOSE(_file);
@@ -252,6 +256,7 @@ struct IndexBucket {
252256
_filename = nullptr;
253257
}
254258
TRI_ASSERT(_file == -1);
259+
#endif
255260
}
256261
};
257262

0 commit comments

Comments
 (0)
0