提交 e919a844 编写于 作者: B Bruce Momjian

Properly initialize local varaible in

btree_xlog_delete_get_latestRemovedXid().  This variable was only tested
in assert builds.
上级 a358423d
......@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtxlog.c,v 1.64 2010/03/28 09:27:01 sriggs Exp $
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtxlog.c,v 1.65 2010/03/30 13:46:09 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -578,7 +578,7 @@ btree_xlog_delete_get_latestRemovedXid(XLogRecord *record)
TransactionId latestRemovedXid = InvalidTransactionId;
TransactionId htupxid = InvalidTransactionId;
int i;
int num_unused, num_redirect, num_dead;
int num_unused = 0, num_redirect, num_dead;
xl_btree_delete *xlrec = (xl_btree_delete *) XLogRecGetData(record);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册