Skip to content

Commit 137992f

Browse files
Roman KoshelevRoman-Koshelev
authored andcommitted
Removed unused method
1 parent bb1d55a commit 137992f

2 files changed

Lines changed: 0 additions & 35 deletions

File tree

runtime/RuntimeLogger.cc

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -313,39 +313,6 @@ RuntimeLogger::preallocate() {
313313
// the user is already willing to invoke this up front cost.
314314
}
315315

316-
/**
317-
* Internal helper function to wait for AIO completion.
318-
*/
319-
void
320-
RuntimeLogger::waitForAIO() {
321-
if (hasOutstandingOperation) {
322-
if (aio_error(&aioCb) == EINPROGRESS) {
323-
const struct aiocb *const aiocb_list[] = {&aioCb};
324-
int err = aio_suspend(aiocb_list, 1, NULL);
325-
326-
if (err != 0)
327-
perror("LogCompressor's Posix AIO suspend operation failed");
328-
}
329-
330-
int err = aio_error(&aioCb);
331-
ssize_t ret = aio_return(&aioCb);
332-
333-
if (err != 0) {
334-
fprintf(stderr, "LogCompressor's POSIX AIO failed with %d: %s\r\n",
335-
err, strerror(err));
336-
} else if (ret < 0) {
337-
perror("LogCompressor's Posix AIO Write operation failed");
338-
}
339-
++numAioWritesCompleted;
340-
hasOutstandingOperation = false;
341-
342-
if (syncStatus == WAITING_ON_AIO) {
343-
syncStatus = SYNC_COMPLETED;
344-
hintSyncCompleted.notify_one();
345-
}
346-
}
347-
}
348-
349316
/**
350317
* Main compression thread that handles scanning through the StagingBuffers,
351318
* compressing log entries, and outputting a compressed log file.

runtime/RuntimeLogger.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,6 @@ using namespace NanoLog;
161161

162162
void setLogFile_internal(const char *filename);
163163

164-
void waitForAIO();
165-
166164
/**
167165
* Allocates thread-local structures if they weren't already allocated.
168166
* This is used by the generated C++ code to ensure it has space to

0 commit comments

Comments
 (0)