MCPcopy Create free account
hub / github.com/apache/cloudberry / ECPGdebug

Function ECPGdebug

src/interfaces/ecpg/ecpglib/misc.c:241–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239
240
241void
242ECPGdebug(int n, FILE *dbgs)
243{
244#ifdef ENABLE_THREAD_SAFETY
245 pthread_mutex_lock(&debug_init_mutex);
246#endif
247
248 if (n > 100)
249 {
250 ecpg_internal_regression_mode = true;
251 simple_debug = n - 100;
252 }
253 else
254 simple_debug = n;
255
256 debugstream = dbgs;
257
258 ecpg_log("ECPGdebug: set to %d\n", simple_debug);
259
260#ifdef ENABLE_THREAD_SAFETY
261 pthread_mutex_unlock(&debug_init_mutex);
262#endif
263}
264
265void
266ecpg_log(const char *format,...)

Callers 15

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
testFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 3

pthread_mutex_lockFunction · 0.85
ecpg_logFunction · 0.85
pthread_mutex_unlockFunction · 0.85

Tested by 15

mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
testFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68