Commit 7fba16d5 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-16264 fixup: Remove unused fts_optimize_wq->event

This was missed not only in
commit 5e62b6a5 but also in
commit a9550c47.
parent 0ccdf8b1
...@@ -46,9 +46,6 @@ struct ib_wqueue_t ...@@ -46,9 +46,6 @@ struct ib_wqueue_t
ib_mutex_t mutex; ib_mutex_t mutex;
/** Work item list */ /** Work item list */
ib_list_t* items; 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) ...@@ -44,7 +44,6 @@ ib_wqueue_create(void)
mutex_create(LATCH_ID_WORK_QUEUE, &wq->mutex); mutex_create(LATCH_ID_WORK_QUEUE, &wq->mutex);
wq->items = ib_list_create(); wq->items = ib_list_create();
wq->event = os_event_create(0);
return(wq); return(wq);
} }
...@@ -58,7 +57,6 @@ ib_wqueue_free( ...@@ -58,7 +57,6 @@ ib_wqueue_free(
{ {
mutex_free(&wq->mutex); mutex_free(&wq->mutex);
ib_list_free(wq->items); ib_list_free(wq->items);
os_event_destroy(wq->event);
ut_free(wq); ut_free(wq);
} }
...@@ -76,7 +74,6 @@ ib_wqueue_add(ib_wqueue_t* wq, void* item, mem_heap_t* heap, bool wq_locked) ...@@ -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); ib_list_add_last(wq->items, item, heap);
os_event_set(wq->event);
if (!wq_locked) { if (!wq_locked) {
mutex_exit(&wq->mutex); mutex_exit(&wq->mutex);
...@@ -100,14 +97,7 @@ ib_wqueue_nowait( ...@@ -100,14 +97,7 @@ ib_wqueue_nowait(
if (node) { if (node) {
ib_list_remove(wq->items, 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); mutex_exit(&wq->mutex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment