feat(TSG-8029): hos 增加 max position 限制

This commit is contained in:
pengxuanzheng
2021-10-15 14:23:18 +08:00
parent 0210e679f4
commit 88a8dccbd0
3 changed files with 22 additions and 13 deletions

View File

@@ -29,7 +29,7 @@ enum hoserrors
HOS_BUCKET_NOT_EXIST = -8,
HOS_INSTANCE_NOT_INIT = -9,
HOS_INSTANCE_NOT_ENABLE = -10,
HOS_FD_OVER_POSITION = -11,
};
/* s3 的错误码 */
@@ -142,9 +142,8 @@ long hos_open_fd(const char *bucket, const char *object, put_finished_callback c
*************************************************************************************/
int hos_write(size_t fd, const char *stream, size_t stream_len);
/*************************************************************************************
* 函数名: hos_close_fd
* 函数名: hos_disable_fd
* 参数: size_t fd fd
* size_t thread_id 线程ID
* 返回值 int 成功返回0失败返回hoserros错误码
*************************************************************************************/
int hos_close_fd(size_t fd);