mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Fix mistake in extensible node code.
I believe that I (rhaas) introduced this bug while editing the patch
that became bcac23de73.
Report and patch from KaiGai Kohei.
			
			
This commit is contained in:
		@@ -45,7 +45,7 @@ RegisterExtensibleNodeMethods(const ExtensibleNodeMethods *methods)
 | 
				
			|||||||
		HASHCTL		ctl;
 | 
							HASHCTL		ctl;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		memset(&ctl, 0, sizeof(HASHCTL));
 | 
							memset(&ctl, 0, sizeof(HASHCTL));
 | 
				
			||||||
		ctl.keysize = NAMEDATALEN;
 | 
							ctl.keysize = EXTNODENAME_MAX_LEN;
 | 
				
			||||||
		ctl.entrysize = sizeof(ExtensibleNodeEntry);
 | 
							ctl.entrysize = sizeof(ExtensibleNodeEntry);
 | 
				
			||||||
		extensible_node_methods = hash_create("Extensible Node Methods",
 | 
							extensible_node_methods = hash_create("Extensible Node Methods",
 | 
				
			||||||
											  100, &ctl, HASH_ELEM);
 | 
																  100, &ctl, HASH_ELEM);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user