MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / lkprintf

Function lkprintf

bdb/cursor.c:111–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109pthread_mutex_t pr_lk = PTHREAD_MUTEX_INITIALIZER;
110
111int lkprintf(loglvl lvl, const char *fmt, ...)
112{
113 va_list args;
114
115 Pthread_mutex_lock(&pr_lk);
116
117 va_start(args, fmt);
118 logmsgv(lvl, fmt, args);
119 va_end(args);
120
121 Pthread_mutex_unlock(&pr_lk);
122
123 return 0;
124}
125
126/* switch a cursor to a different dta file
127 we add ONE virtual data stripe,

Callers 3

bdb_btree_mergeFunction · 0.85

Calls 1

logmsgvFunction · 0.85

Tested by

no test coverage detected