mirror of
				https://github.com/psycopg/psycopg2.git
				synced 2025-11-04 01:37:31 +03:00 
			
		
		
		
	Double mutex destroy fix.
This commit is contained in:
		
							parent
							
								
									269156d9bf
								
							
						
					
					
						commit
						dbd976bc03
					
				| 
						 | 
					@ -1,5 +1,8 @@
 | 
				
			||||||
2006-09-01  Federico Di Gregorio  <fog@initd.org>
 | 
					2006-09-01  Federico Di Gregorio  <fog@initd.org>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						* psycopg/connection_type.c: merged in double mutex destroy patch
 | 
				
			||||||
 | 
						from Joerg Sonnenberger.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	* Implemented large objects support.
 | 
						* Implemented large objects support.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	* psycopg/connection_int.c: removed increment of self->mark,
 | 
						* psycopg/connection_int.c: removed increment of self->mark,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -370,7 +370,6 @@ connection_setup(connectionObject *self, char *dsn)
 | 
				
			||||||
    pthread_mutex_init(&(self->lock), NULL);
 | 
					    pthread_mutex_init(&(self->lock), NULL);
 | 
				
			||||||
 
 | 
					 
 | 
				
			||||||
    if (conn_connect(self) != 0) {
 | 
					    if (conn_connect(self) != 0) {
 | 
				
			||||||
        pthread_mutex_destroy(&(self->lock));
 | 
					 | 
				
			||||||
        Dprintf("connection_init: FAILED");
 | 
					        Dprintf("connection_init: FAILED");
 | 
				
			||||||
        return -1;
 | 
					        return -1;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user