MCPcopy Create free account
hub / github.com/apache/trafficserver / RecGetRecordBool

Function RecGetRecordBool

src/records/RecCore.cc:493–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493RecErrT
494RecGetRecordBool(const char *name, RecBool *rec_bool, bool lock)
495{
496 RecErrT err;
497 RecData data;
498
499 if ((err = RecGetRecord_Xmalloc(name, RECD_INT, &data, lock)) == REC_ERR_OKAY) {
500 *rec_bool = 0 != data.rec_int;
501 }
502 return err;
503}
504
505//-------------------------------------------------------------------------
506// RecGetRec Attributes

Callers 1

ink_event_system_initFunction · 0.85

Calls 1

RecGetRecord_XmallocFunction · 0.85

Tested by

no test coverage detected