Typo in hashsearch.c

Started by Mithun Cyalmost 9 years ago2 messages
#1Mithun Cy
mithun.cy@enterprisedb.com
1 attachment(s)

There is a typo in comments of function _hash_first(); Adding a fix for same.

--
Thanks and Regards
Mithun C Y
EnterpriseDB: http://www.enterprisedb.com

Attachments:

hashsearch_typo01.patchapplication/octet-stream; name=hashsearch_typo01.patchDownload
diff --git a/src/backend/access/hash/hashsearch.c b/src/backend/access/hash/hashsearch.c
index c0bdfe6..3313cd8 100644
--- a/src/backend/access/hash/hashsearch.c
+++ b/src/backend/access/hash/hashsearch.c
@@ -338,7 +338,7 @@ _hash_first(IndexScanDesc scan, ScanDirection dir)
 	 * being populated, we need to skip tuples that are moved from bucket
 	 * being split.  We need to maintain the pin on bucket being split to
 	 * ensure that split-cleanup work done by vacuum doesn't remove tuples
-	 * from it till this scan is done.  We need to main to maintain the pin on
+	 * from it till this scan is done.  We need to maintain the pin on
 	 * bucket being populated to ensure that vacuum doesn't squeeze that
 	 * bucket till this scan is complete, otherwise the ordering of tuples
 	 * can't be maintained during forward and backward scans.  Here, we have
#2Robert Haas
robertmhaas@gmail.com
In reply to: Mithun Cy (#1)
Re: Typo in hashsearch.c

On Fri, Jan 13, 2017 at 4:38 AM, Mithun Cy <mithun.cy@enterprisedb.com> wrote:

There is a typo in comments of function _hash_first(); Adding a fix for same.

Thanks. I pushed a commit including this fix and some other
improvements to that comment.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers