上传时输出对象的路径

This commit is contained in:
zhangchengwei
2018-09-28 15:16:28 +08:00
parent 3ad673b610
commit ad93b4ed6f
9 changed files with 37 additions and 33 deletions

View File

@@ -213,7 +213,7 @@ static void dummy_accept_callback(evutil_socket_t fd, short events, void *arg)
promise_set_ctx(future_to_promise(pdata->future), NULL, NULL);
ctx = tango_cache_update_start(tango_instance, pdata->future, &meta);
sprintf(pdata->filename, "%s", tango_cache_get_object_key(ctx));
tango_cache_get_object_path(ctx, pdata->filename, 256);
FILE *fp = fopen(s, "r");
while(!feof(fp))