Обсуждение: Dead function argument?

Поиск
Список
Период
Сортировка

Dead function argument?

От
Antonin Houska
Дата:
While reading storage/lmgr/lock.c I noticed that the last (proc)
argument of LockCheckConflicts() is not referenced inside the function.
Is it just a remnant from older version?

// Antonin Houska (Tony)



Re: Dead function argument?

От
Alvaro Herrera
Дата:
Antonin Houska escribió:
> While reading storage/lmgr/lock.c I noticed that the last (proc)
> argument of LockCheckConflicts() is not referenced inside the function.
> Is it just a remnant from older version?

My guess is this is just an oversight.  The use of that argument was
removed in commit 8563ccae2caf.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services