mirror of
				https://github.com/isar/libmdbx.git
				synced 2025-11-01 03:48:57 +08:00 
			
		
		
		
	mdbx: minor fix mdbx_jitter4testing() for case MDBX_DEBUG >= 2.
				
					
				
			This commit is contained in:
		| @@ -1189,6 +1189,15 @@ extern uint8_t mdbx_runtime_flags; | |||||||
| extern uint8_t mdbx_loglevel; | extern uint8_t mdbx_loglevel; | ||||||
| extern MDBX_debug_func *mdbx_debug_logger; | extern MDBX_debug_func *mdbx_debug_logger; | ||||||
|  |  | ||||||
|  | MDBX_MAYBE_UNUSED static __inline void mdbx_jitter4testing(bool tiny) { | ||||||
|  | #if MDBX_DEBUG | ||||||
|  |   if (MDBX_DBG_JITTER & mdbx_runtime_flags) | ||||||
|  |     mdbx_osal_jitter(tiny); | ||||||
|  | #else | ||||||
|  |   (void)tiny; | ||||||
|  | #endif | ||||||
|  | } | ||||||
|  |  | ||||||
| MDBX_INTERNAL_FUNC void MDBX_PRINTF_ARGS(4, 5) | MDBX_INTERNAL_FUNC void MDBX_PRINTF_ARGS(4, 5) | ||||||
|     mdbx_debug_log(int level, const char *function, int line, const char *fmt, |     mdbx_debug_log(int level, const char *function, int line, const char *fmt, | ||||||
|                    ...) MDBX_PRINTF_ARGS(4, 5); |                    ...) MDBX_PRINTF_ARGS(4, 5); | ||||||
|   | |||||||
							
								
								
									
										10
									
								
								src/osal.h
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								src/osal.h
									
									
									
									
									
								
							| @@ -484,15 +484,7 @@ typedef union MDBX_srwlock { | |||||||
| #ifndef __cplusplus | #ifndef __cplusplus | ||||||
|  |  | ||||||
| MDBX_MAYBE_UNUSED MDBX_INTERNAL_FUNC void mdbx_osal_jitter(bool tiny); | MDBX_MAYBE_UNUSED MDBX_INTERNAL_FUNC void mdbx_osal_jitter(bool tiny); | ||||||
|  | MDBX_MAYBE_UNUSED static __inline void mdbx_jitter4testing(bool tiny); | ||||||
| MDBX_MAYBE_UNUSED static __inline void mdbx_jitter4testing(bool tiny) { |  | ||||||
| #if MDBX_DEBUG |  | ||||||
|   if (MDBX_DBG_JITTER & mdbx_runtime_flags) |  | ||||||
|     mdbx_osal_jitter(tiny); |  | ||||||
| #else |  | ||||||
|   (void)tiny; |  | ||||||
| #endif |  | ||||||
| } |  | ||||||
|  |  | ||||||
| /*----------------------------------------------------------------------------*/ | /*----------------------------------------------------------------------------*/ | ||||||
| /* Atomics */ | /* Atomics */ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user