mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-30 04:26:45 +03:00 
			
		
		
		
	Problem: When an Incident_log_event contains a bad incident number on disk, the server crashes with an assertion. Fix: Don't validate input with assertions. Use errors.
		
			
				
	
	
		
			19 lines
		
	
	
		
			372 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			372 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef RPL_CONSTANTS_H
 | |
| #define RPL_CONSTANTS_H
 | |
| 
 | |
| /**
 | |
|    Enumeration of the incidents that can occur for the server.
 | |
|  */
 | |
| enum Incident {
 | |
|   /** No incident */
 | |
|   INCIDENT_NONE = 0,
 | |
| 
 | |
|   /** There are possibly lost events in the replication stream */
 | |
|   INCIDENT_LOST_EVENTS = 1,
 | |
| 
 | |
|   /** Shall be last event of the enumeration */
 | |
|   INCIDENT_COUNT
 | |
| };
 | |
| 
 | |
| #endif /* RPL_CONSTANTS_H */
 |