mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Remove redundant setting of hashkey after insertion
It's not necessary to fill the key field in most cases, since hash_search has already done that. Some existing call sites have an assert or comment that this contract has been fulfilled, but those are quite old and that practice seems unnecessary here. While at it, remove a nearby redundant assignment that a smart compiler will elide anyway. Zhao Junwang, with some adjustments by me Reviewed by Nathan Bossart, with additional feedback from Tom Lane Discussion: http://postgr.es/m/CAEG8a3%2BUPF%3DR2QGPgJMF2mKh8xPd1H2TmfH77zPuVUFdBpiGUA%40mail.gmail.com
This commit is contained in:
@ -509,7 +509,6 @@ pa_allocate_worker(TransactionId xid)
|
||||
winfo->in_use = true;
|
||||
winfo->serialize_changes = false;
|
||||
entry->winfo = winfo;
|
||||
entry->xid = xid;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user