Add missing else.
authorRobert Haas <rhaas@postgresql.org>
Fri, 27 Jul 2012 16:36:07 +0000 (16:36 +0000)
committerRobert Haas <rhaas@postgresql.org>
Fri, 27 Jul 2012 16:36:07 +0000 (16:36 +0000)
contrib/hashtest/hashtest.c

index 655b2a123d82e8dc3897a7859e74e81813ce802e..d15c76abafffaf9f547690f7ec0d38485ea245e2 100644 (file)
@@ -194,7 +194,7 @@ chash_concurrent_test(PG_FUNCTION_ARGS)
                ok = CHashSearch(chash, &e);
                if (!ok)
                        elog(LOG, "search %u: not found", i);
-               if (e.val != MyProcPid)
+               else if (e.val != MyProcPid)
                        elog(LOG, "search %u: expected %u found %u", i, (unsigned) MyProcPid, e.val);
        }