MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / lpValidateFirst

Function lpValidateFirst

src/listpack.c:868–872  ·  view source on GitHub ↗

Same as lpFirst but without validation assert, to be used right before lpValidateNext. */

Source from the content-addressed store, hash-verified

866
867/* Same as lpFirst but without validation assert, to be used right before lpValidateNext. */
868unsigned char *lpValidateFirst(unsigned char *lp) {
869 unsigned char *p = lp + LP_HDR_SIZE; /* Skip the header. */
870 if (p[0] == LP_EOF) return NULL;
871 return p;
872}
873
874/* Validate the integrity of a single listpack entry and move to the next one.
875 * The input argument 'pp' is a reference to the current record and is advanced on exit.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected