pgsql: Remove unnecessary code from be_lo_put()

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove unnecessary code from be_lo_put()
Date: 2024-04-25 08:26:32
Message-ID: E1rzuR5-003n2E-H1@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove unnecessary code from be_lo_put()

A permission check is performed in be_lo_put() just after returning
from inv_open(), but the permission is already checked in inv_open(),
so we can remove the second check.

This check was added in 8d9881911f0, but then the refactoring in
ae20b23a9e7 should have removed it.

Author: Yugo NAGATA <nagata(at)sraoss(dot)co(dot)jp>
Discussion: https://www.postgresql.org/message-id/flat/20240424185932.9789628b99a49ec81b020425%40sraoss.co.jp

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0afa288911d5af7b0f5bd7a1aa09cdea7f02590c

Modified Files
--------------
src/backend/libpq/be-fsstubs.c | 12 ------------
1 file changed, 12 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Kapila 2024-04-25 08:44:15 pgsql: Post-commit review fixes for slot synchronization.
Previous Message Amit Kapila 2024-04-25 05:33:58 pgsql: Fix the missing table sync due to improper invalidation handling