Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9de97c5

Browse files
author
Neil Conway
committed
Trivial code clarity improvement to UpdateStats(); no functional change.
1 parent 368739d commit 9de97c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/catalog/index.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/catalog/index.c,v 1.256 2005/05/19 21:35:45 tgl Exp $
11+
* $PostgreSQL: pgsql/src/backend/catalog/index.c,v 1.257 2005/06/20 02:07:47 neilc Exp $
1212
*
1313
*
1414
* INTERFACE ROUTINES
@@ -1293,10 +1293,10 @@ UpdateStats(Oid relid, double reltuples)
12931293
}
12941294
}
12951295

1296-
if (!pg_class_scan)
1297-
heap_freetuple(tuple);
1298-
else
1296+
if (in_place_upd)
12991297
heap_endscan(pg_class_scan);
1298+
else
1299+
heap_freetuple(tuple);
13001300

13011301
/*
13021302
* We shouldn't have to do this, but we do... Modify the reldesc in

0 commit comments

Comments
 (0)