• Peter Geoghegan's avatar
    Avoid harmless Valgrind no-buffer-pin errors. · a766d6ca
    Peter Geoghegan authored
    Valgrind builds with assertions enabled sometimes perform a
    theoretically unsafe page access inside an assertion in
    heapam_tuple_lock().  This happened when the eval-plan-qual isolation
    test ran one of the permutations added by commit a2418f9e.
    
    Avoid complaints from Valgrind by moving the assertion ever so slightly.
    This is minor cleanup for commit 1e0dfd16, which added Valgrind buffer
    access instrumentation.
    
    No backpatch, since this only happens within an assertion, and seems
    very unlikely to cause any real problems even with assert-enabled
    builds.
    a766d6ca
heapam_handler.c 72.2 KB