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

Function RecSnapFileRead

src/records/RecFile.cc:83–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81//-------------------------------------------------------------------------
82
83int
84RecSnapFileRead(RecHandle h_file, char *buf, int size, int *bytes_read)
85{
86 if ((*bytes_read = ::pread(h_file, buf, size, VERSION_HDR_SIZE)) <= 0) {
87 *bytes_read = 0;
88 return REC_ERR_FAIL;
89 }
90 return REC_ERR_OKAY;
91}
92
93//-------------------------------------------------------------------------
94// RecFileRead

Callers 1

RecMessageReadFromDiskFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected