- Notifications
You must be signed in to change notification settings - Fork28
Commit3f2adac
committed
Fix end-of-loop optimization in pglz_find_match() function.
After the recent pglz optimization patch, the next/prev pointers in thehash table are never NULL, INVALID_ENTRY_PTR is used to represent invalidentries instead. The end-of-loop check in pglz_find_match() function didn'tget the memo. The result was the same from a correctness point of view, butbecause the NULL-check would never fail, the tiny optimization turned intoa pessimization.Reported by Stephen Frost, using Coverity scanner.1 parent750f436 commit3f2adac
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
469 | | - | |
| 469 | + | |
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
| |||
0 commit comments
Comments
(0)