summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpengxuanzheng <[email protected]>2020-11-11 11:15:14 +0800
committerpengxuanzheng <[email protected]>2020-11-11 11:15:14 +0800
commit7bf190553b473bf355a91329e33b59d34778cfad (patch)
tree931c7fe0dd90ae2fdef7c0d2714ed772261d9bb5
parent810b099113f3fe953580e3402dbb904a442a4b9e (diff)
修改demo
-rw-r--r--example/demo/hos_write_complete.cpp2
-rw-r--r--example/performance/HosClientPerformance.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/example/demo/hos_write_complete.cpp b/example/demo/hos_write_complete.cpp
index f96b16b9..e78ed694 100644
--- a/example/demo/hos_write_complete.cpp
+++ b/example/demo/hos_write_complete.cpp
@@ -80,7 +80,7 @@ int main(int argc, char *argv[])
hos_init_api();
debuginfo("hos_client_init start ...\n");
- hos_client_handle handle = hos_client_create("http://192.168.40.223:9098/hos/", "default", "default", 4000);
+ hos_client_handle handle = hos_client_create("http://192.168.40.223:9098/hos/", "default", "default", 400);
//hos_client_handle handle = hos_client_create("http://192.168.32.10:9098/hos/", "default", "default", 4);
if (handle == NULL)
{
diff --git a/example/performance/HosClientPerformance.cpp b/example/performance/HosClientPerformance.cpp
index 043fb58b..3cd88ef8 100644
--- a/example/performance/HosClientPerformance.cpp
+++ b/example/performance/HosClientPerformance.cpp
@@ -541,6 +541,7 @@ int main(int argc, char *argv[])
hos_set_thread_sum(handle, conf.thread_sum);
hos_set_cache_size(handle, conf.append_size);
+ hos_set_cache_times(handle, 0);
//创建bucket
if (hos_create_bucket(handle, conf.bucket))