🐞 fix(TSG-8143): 区分hos_open_fd的错误值以及fd的值,不再共用一个返回值
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
[hos_default_conf]
|
||||
hos_serverip=192.168.40.223
|
||||
hos_serverport=9099
|
||||
hos_serverip=192.168.10.1
|
||||
hos_serverport=9098
|
||||
hos_accesskeyid="default"
|
||||
hos_secretkey="default"
|
||||
hos_log_path="./log/hoslog" #default
|
||||
hos_log_level=30 #default
|
||||
hos_log_level=10 #default
|
||||
hos_poolsize=0 #default
|
||||
hos_thread_sum=32 #default
|
||||
hos_cache_size=102400 #default
|
||||
|
||||
@@ -131,7 +131,7 @@ int main(int argc, char *argv[])
|
||||
mode = BUFF_MODE | APPEND_MODE;
|
||||
printf("hos_write buff start ...\n");
|
||||
snprintf(object, 1023, "%s_write_APPEND", file_name);
|
||||
fd = hos_open_fd(bucket, object, callback, NULL, 0);
|
||||
int err = hos_open_fd(bucket, object, callback, NULL, 0, &fd);
|
||||
if (hos_write(fd, buf, buffer.st_size) != HOS_CLIENT_OK)
|
||||
{
|
||||
printf("error: hos_write failed 1st!\n");
|
||||
|
||||
Reference in New Issue
Block a user