#1572 util.indexedbheap: Moving item from bottom to top fails

Reporter Zash
Owner Nobody
Created
Updated
Stars ★ (1)
Tags
  • Status-Accepted
  • Type-Defect
  • Priority-Medium
  1. Zash on

    What steps will reproduce the problem? h:insert("a", 1); h:insert("b", 2); h:insert("c", 3); local id = h:insert("*", 10); h:reprioritize(id, 0); assert.same({ 0, "*", id }, { h:pop() }); What version of the product are you using? https://hg.prosody.im/trunk/rev/2451e3918c2c Please provide any additional information below. This affects timers, i.e. scheduling a timer for a fair bit in the future, then rescheduling it to right now.

New comment

Not published. Used for spam prevention and optional update notifications.