MCPcopy Create free account
hub / github.com/F-Stack/f-stack / streamLogListpackContent

Function streamLogListpackContent

app/redis-6.2.6/src/t_stream.c:358–367  ·  view source on GitHub ↗

Debugging function to log the full content of a listpack. Useful * for development and debugging. */

Source from the content-addressed store, hash-verified

356/* Debugging function to log the full content of a listpack. Useful
357 * for development and debugging. */
358void streamLogListpackContent(unsigned char *lp) {
359 unsigned char *p = lpFirst(lp);
360 while(p) {
361 unsigned char buf[LP_INTBUF_SIZE];
362 int64_t v;
363 unsigned char *ele = lpGet(p,&v,buf);
364 serverLog(LL_WARNING,"- [%d] '%.*s'", (int)v, (int)v, ele);
365 p = lpNext(lp,p);
366 }
367}
368
369/* Convert the specified stream entry ID as a 128 bit big endian number, so
370 * that the IDs can be sorted lexicographically. */

Callers

nothing calls this directly

Calls 3

lpFirstFunction · 0.85
lpGetFunction · 0.85
lpNextFunction · 0.85

Tested by

no test coverage detected