This is an automated email from the ASF dual-hosted git repository.
amc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 2088331 Fix issue caused by snap file
2088331 is described below
commit 2088331f339e9102f9281ec440ad7a987b223cd2
Author: Xavier Chi <[email protected]>
AuthorDate: Thu Jul 19 11:14:33 2018 -0500
Fix issue caused by snap file
---
lib/records/RecMessage.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/records/RecMessage.cc b/lib/records/RecMessage.cc
index e863636..2fcc73a 100644
--- a/lib/records/RecMessage.cc
+++ b/lib/records/RecMessage.cc
@@ -266,7 +266,7 @@ RecMessageReadFromDisk(const char *fpath)
if ((h_file = RecFileOpenR(fpath)) == REC_HANDLE_INVALID) {
goto Lerror;
}
- if (RecSnapFileRead(h_file, (char *)(&msg_hdr), sizeof(RecMessageHdr),
&bytes_read) == REC_ERR_FAIL) {
+ if (RecFileRead(h_file, (char *)(&msg_hdr), sizeof(RecMessageHdr),
&bytes_read) == REC_ERR_FAIL) {
goto Lerror;
}
msg = (RecMessage *)ats_malloc((msg_hdr.o_end - msg_hdr.o_start) +
sizeof(RecMessageHdr));