Skip to content
Permalink
Browse files
MDEV-16264 fixup: Remove unused fts_optimize_wq->event
This was missed not only in
commit 5e62b6a but also in
commit a9550c4.
  • Loading branch information
dr-m committed Oct 2, 2020
1 parent 0ccdf8b commit 7fba16d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
@@ -46,9 +46,6 @@ struct ib_wqueue_t
ib_mutex_t mutex;
/** Work item list */
ib_list_t* items;
/** event we use to signal additions to list;
os_event_set() and os_event_reset() are protected by the mutex */
os_event_t event;
};

/****************************************************************//**
@@ -44,7 +44,6 @@ ib_wqueue_create(void)
mutex_create(LATCH_ID_WORK_QUEUE, &wq->mutex);

wq->items = ib_list_create();
wq->event = os_event_create(0);

return(wq);
}
@@ -58,7 +57,6 @@ ib_wqueue_free(
{
mutex_free(&wq->mutex);
ib_list_free(wq->items);
os_event_destroy(wq->event);

ut_free(wq);
}
@@ -76,7 +74,6 @@ ib_wqueue_add(ib_wqueue_t* wq, void* item, mem_heap_t* heap, bool wq_locked)
}

ib_list_add_last(wq->items, item, heap);
os_event_set(wq->event);

if (!wq_locked) {
mutex_exit(&wq->mutex);
@@ -100,16 +97,9 @@ ib_wqueue_nowait(

if (node) {
ib_list_remove(wq->items, node);

}
}

/* We must reset the event when the list
gets emptied. */
if(ib_list_is_empty(wq->items)) {
os_event_reset(wq->event);
}

mutex_exit(&wq->mutex);

return (node ? node->data : NULL);

0 comments on commit 7fba16d

Please sign in to comment.