Closed nekufa closed 7 years ago
If not exists flag is ignored.
It's easy to reproduce the issue. Simply run this code twice: queue.create_tube('web_push', 'fifo', {temporary = false, if_not_exists = true})
queue.create_tube('web_push', 'fifo', {temporary = false, if_not_exists = true})
Behind the scenes drivers are creating their own create_space options, so if_not_exists flag is ignored. https://github.com/tarantool/queue/blob/master/queue/abstract/driver/fifo.lua#L8-L13
If not exists flag is ignored.
It's easy to reproduce the issue. Simply run this code twice:
queue.create_tube('web_push', 'fifo', {temporary = false, if_not_exists = true})
Behind the scenes drivers are creating their own create_space options, so if_not_exists flag is ignored. https://github.com/tarantool/queue/blob/master/queue/abstract/driver/fifo.lua#L8-L13