summaryrefslogtreecommitdiff
path: root/cache
diff options
context:
space:
mode:
authorzhangchengwei <[email protected]>2018-12-15 21:19:20 +0800
committerzhengchao <[email protected]>2018-12-21 11:09:33 +0600
commitc801523de9c5ae244fc5182a63e4266a8f2482ac (patch)
tree03dfc5bd78769172a491ee49c50cd58216ad6c84 /cache
parenta70aa35a3a6d24ec415527ce2ad52e7fc80c4c79 (diff)
hiredis-vip-0.3.0.zip编译修正
Diffstat (limited to 'cache')
-rw-r--r--cache/include/object_store_client.h2
-rw-r--r--cache/src/object_store_client.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/cache/include/object_store_client.h b/cache/include/object_store_client.h
index e7d72bc..351bb83 100644
--- a/cache/include/object_store_client.h
+++ b/cache/include/object_store_client.h
@@ -29,7 +29,7 @@ int object_store_head_object(struct object_store_instance *instance, struct futu
struct tango_cache_result *object_store_read_result(void *promise_result);
//DELETE�ӿ�
-int object_store_delete_object(struct object_store_instance *instance, struct future* f, const char *objkey);
+int object_store_delete_object(struct object_store_instance *instance, struct future* f, const char *objkey, const char *minio_addr=NULL, const char *bucket=NULL);
//һ�����ϴ��ӿ�
int object_store_upload_once_data(struct object_store_instance *instance, struct future* f,
diff --git a/cache/src/object_store_client.cpp b/cache/src/object_store_client.cpp
index bd2ecd9..58eb3fb 100644
--- a/cache/src/object_store_client.cpp
+++ b/cache/src/object_store_client.cpp
@@ -104,9 +104,9 @@ int object_store_head_object(struct object_store_instance *instance, struct futu
return cache_evbase_head_object(instance->instances[rand()%instance->instance_num], f, meta);
}
-int object_store_delete_object(struct object_store_instance *instance, struct future* f, const char *objkey)
+int object_store_delete_object(struct object_store_instance *instance, struct future* f, const char *objkey, const char *minio_addr, const char *bucket)
{
- return cache_evbase_delete_object(instance->instances[rand()%instance->instance_num], f, objkey);
+ return cache_evbase_delete_object(instance->instances[rand()%instance->instance_num], f, objkey, minio_addr, bucket);
}
struct object_store_instance *object_store_instance_new(const char* profile_path, const char* section, int thread_num, void *runtimelog)