• Kirill Smelkov's avatar
    X zodb/cache: Fix concurrency bug (42687746) · e80dcbde
    Kirill Smelkov authored
    By extending loadRCE to accept how much the caller wants returned
    rce.buf to be xincref'ed we can teach it to do the incref consistently
    under rce.parent lock either itself, or schedule the incref to loadRCE
    to be done after rce is loaded right before it is exposed to outside
    world (rce waiters + gc).
    e80dcbde
cache_test.go 17.9 KB