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

Function skip_history

tools/cdb2sql/cdb2sql.cpp:510–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508}
509
510static bool skip_history(const char *line)
511{
512 size_t n;
513
514 while (isspace(*line))
515 ++line;
516
517 n = sizeof("set") - 1;
518 if (strncasecmp(line, "set", n)) {
519 return false;
520 }
521 line += n;
522
523 while (isspace(*line))
524 ++line;
525
526 if (strncasecmp(line, "password", sizeof("password") - 1)) {
527 return false;
528 }
529 return true;
530}
531
532static bool has_delimiter(char *line, int len, char *delimiter, int dlen)
533{

Callers 1

read_lineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected