diff --git a/HISTORY b/HISTORY index 0d408ee..b1f5e7d 100644 --- a/HISTORY +++ b/HISTORY @@ -1,7 +1,9 @@ -Version 5.10 2017-02-17 +Version 5.10 2017-03-08 * use fc_safe_read instead of read, and fc_safe_write instead of write you must upgrade libfastcommon to V1.35 or later + * fix getFileContentEx read bytes, + you must upgrade libfastcommon to V1.36 or later Version 5.09 2016-12-29 * bug fixed: list_all_groups expand buffer auto for so many groups diff --git a/fastdfs.spec b/fastdfs.spec index 115a693..3016cce 100644 --- a/fastdfs.spec +++ b/fastdfs.spec @@ -17,13 +17,13 @@ Source: http://perso.orange.fr/sebastien.godard/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: %__cp %__mv %__chmod %__grep %__mkdir %__install %__id -BuildRequires: libfastcommon-devel >= 1.0.35 +BuildRequires: libfastcommon-devel >= 1.0.36 %description This package provides tracker & storage of fastdfs %package -n %{FDFSServer} -Requires: libfastcommon >= 1.0.35 +Requires: libfastcommon >= 1.0.36 Summary: fastdfs tracker & storage %package -n %{FDFSTool} diff --git a/tracker/tracker_service.c b/tracker/tracker_service.c index 2694728..ef63d15 100644 --- a/tracker/tracker_service.c +++ b/tracker/tracker_service.c @@ -1992,7 +1992,7 @@ static int tracker_deal_get_one_sys_file(struct fast_task_info *pTask) long2buff(file_stat.st_size, p); p += FDFS_PROTO_PKG_LEN_SIZE; - bytes = read_bytes; + bytes = read_bytes + 1; if (read_bytes > 0 && (result=getFileContentEx(full_filename, \ p, offset, &bytes)) != 0) {