Unix Technical Forum

unused variable ShmemBootstrap

This is a discussion on unused variable ShmemBootstrap within the Pgsql Patches forums, part of the PostgreSQL category; --> Patchers, src/backend/storage/shmem.c contains an unused variable; it's only assigned to, and used in a couple Assert(). It's been this ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Patches

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 11:12 PM
Alvaro Herrera
 
Posts: n/a
Default unused variable ShmemBootstrap

Patchers,

src/backend/storage/shmem.c contains an unused variable; it's only
assigned to, and used in a couple Assert(). It's been this way since
shmem.c 1.53, which was current on july 2000.

This patch removes it, along with an obsolete comment (which refers to a
file and function that hasn't existed at all in the whole CVS history.)

--
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
"There is evil in the world. There are dark, awful things. Occasionally, we get
a glimpse of them. But there are dark corners; horrors almost impossible to
imagine... even in our worst nightmares." (Van Helsing, Dracula A.D. 1972)


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 11:12 PM
Tom Lane
 
Posts: n/a
Default Re: unused variable ShmemBootstrap

Alvaro Herrera <alvherre@dcc.uchile.cl> writes:
> This patch removes it, along with an obsolete comment (which refers to a
> file and function that hasn't existed at all in the whole CVS history.)


I agree that the code is useless, but exactly which comment are you
complaining of?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-17-2008, 11:12 PM
Alvaro Herrera
 
Posts: n/a
Default Re: unused variable ShmemBootstrap

On Tue, Mar 29, 2005 at 11:48:57PM -0500, Tom Lane wrote:
> Alvaro Herrera <alvherre@dcc.uchile.cl> writes:
> > This patch removes it, along with an obsolete comment (which refers to a
> > file and function that hasn't existed at all in the whole CVS history.)

>
> I agree that the code is useless, but exactly which comment are you
> complaining of?


Oops, somehow I left that parth out of the patch.


*** shmem.c 31 Dec 2004 22:00:56 -0000 1.82
--- shmem.c 30 Mar 2005 14:56:46 -0000
***************
*** 53,61 ****
* cannot be redistributed to other tables. We could build a simple
* hash bucket garbage collector if need be. Right now, it seems
* unnecessary.
- *
- * See InitSem() in sem.c for an example of how to use the
- * shmem index.
*/

#include "postgres.h"
--- 53,58 ----


--
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
"¿Cómo puedes confiar en algo que pagas y que no ves,
y no confiar en algo que te dan y te lo muestran?" (Germán Poo)

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-17-2008, 11:12 PM
Neil Conway
 
Posts: n/a
Default Re: unused variable ShmemBootstrap

Alvaro Herrera wrote:
> Oops, somehow I left that parth out of the patch.


Thanks, both patches applied.

-Neil

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:03 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com