From: Abhishek Lekshmanan Date: Thu, 23 Feb 2017 11:54:44 +0000 (+0100) Subject: rgw_aws_module: lets call put object and see what happens X-Git-Tag: v13.1.0~270^2~116 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7c227acca599e7199974a005226df732f01b1dea;p=ceph.git rgw_aws_module: lets call put object and see what happens Signed-off-by: Abhishek Lekshmanan --- diff --git a/src/rgw/rgw_sync_module_aws.cc b/src/rgw/rgw_sync_module_aws.cc index 8e7bda10083a..96d1ebbd0c42 100644 --- a/src/rgw/rgw_sync_module_aws.cc +++ b/src/rgw/rgw_sync_module_aws.cc @@ -74,11 +74,17 @@ public: if (retcode < 0) { return set_cr_error(retcode); } - ldout(sync_env->cct,0) << "abhi: download complete, printing object res:=" << res.c_str() << dendl; - //ldout(sync_env->cct, 0) << "abhi: list size" << res.size() << dendl; - // yield { - // // implement me here should be the coroutine to send the stuff we received to aws - + ldout(sync_env->cct,0) << "abhi: download complete, printing object"<< dendl; + yield { + string path=aws_object_name(bucket_info, key); + call(new RGWPutRawRESTResourceCR (sync_env->cct, conf.conn, + sync_env->http_manager, + path, nullptr, + res, nullptr)); + } + if (retcode < 0) { + return set_cr_error(retcode); + }