git.postgresql.org Git - postgresql.git/commit
2013年7月17日 17:24:28 +0000 (20:24 +0300)
2013年7月17日 17:37:09 +0000 (20:37 +0300)
commit 3f2adace1ec025908b5189f0773b4eaab3d228d5
Fix end-of-loop optimization in pglz_find_match() function.
After the recent pglz optimization patch, the next/prev pointers in the
hash table are never NULL, INVALID_ENTRY_PTR is used to represent invalid
entries instead. The end-of-loop check in pglz_find_match() function didn't
get the memo. The result was the same from a correctness point of view, but
because the NULL-check would never fail, the tiny optimization turned into
a pessimization.
Reported by Stephen Frost, using Coverity scanner.
This is the main PostgreSQL git repository.
RSS
Atom