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

Reporter Zash
Owner MattJ
Created
Updated
Stars ★ (1)
Tags
  • Priority-Medium
  • Type-Defect
  • Status-Fixed
  • Milestone-0.11
  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.

  2. MattJ on

    Fixed in https://hg.prosody.im/trunk/rev/7d4c292f178e Fix released in 0.11.7.

    Changes
    • tags Milestone-0.11 Status-Fixed
    • owner MattJ

New comment

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