File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments