summaryrefslogtreecommitdiff
path: root/cache/src/tango_cache_transfer.cpp
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2021-03-30 16:56:44 +0800
committerfengweihao <[email protected]>2021-03-30 16:56:44 +0800
commit3e020b9e28e9126f2544557705c2006047053d36 (patch)
tree862763fdb5c81f397d620b2a5337aa821d9ac307 /cache/src/tango_cache_transfer.cpp
parent2b649f4510fdad386057ffd1d8ce2ef27b4dab36 (diff)
hos存储非结构化文件命名修改v4.4.01-202104release-4.4
Diffstat (limited to 'cache/src/tango_cache_transfer.cpp')
-rw-r--r--cache/src/tango_cache_transfer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/cache/src/tango_cache_transfer.cpp b/cache/src/tango_cache_transfer.cpp
index 6ea2c63..1b42ce7 100644
--- a/cache/src/tango_cache_transfer.cpp
+++ b/cache/src/tango_cache_transfer.cpp
@@ -658,7 +658,7 @@ void tango_cache_curl_muldel_done(struct tango_cache_ctx *ctx, CURLcode res, lon
int do_tango_cache_multi_delete(struct tango_cache_ctx *ctx, bool callback)
{
UNUSED CURLMcode rc;
- char minio_url[256];
+ char minio_url[256], buffer[256];
ctx->instance->statistic.del_recv_num += ctx->del.succ_num;
ctx->instance->error_code = CACHE_OK;
@@ -674,6 +674,8 @@ int do_tango_cache_multi_delete(struct tango_cache_ctx *ctx, bool callback)
curl_easy_setopt(ctx->curl, CURLOPT_POSTFIELDSIZE, ctx->response.size); //���Content-Length����CURLOPT_COPYPOSTFIELDS֮ǰ����
curl_easy_setopt(ctx->curl, CURLOPT_COPYPOSTFIELDS, ctx->response.buff);
curl_easy_setopt(ctx->curl, CURLOPT_URL, minio_url);
+ sprintf(buffer, "token: %s", ctx->instance->param->cache_token);
+ ctx->headers = curl_slist_append(ctx->headers, buffer);
curl_easy_setopt(ctx->curl, CURLOPT_HTTPHEADER, ctx->headers);
curl_easy_setopt(ctx->curl, CURLOPT_WRITEFUNCTION, curl_response_body_save_cb);
curl_easy_setopt(ctx->curl, CURLOPT_WRITEDATA, ctx);