From 7bf190553b473bf355a91329e33b59d34778cfad Mon Sep 17 00:00:00 2001 From: pengxuanzheng Date: Wed, 11 Nov 2020 11:15:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9demo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/demo/hos_write_complete.cpp | 2 +- example/performance/HosClientPerformance.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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))