]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: only use plain PUT processor when !chunked_upload
authorYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 9 Jan 2012 18:15:00 +0000 (10:15 -0800)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 9 Jan 2012 18:37:11 +0000 (10:37 -0800)
src/rgw/rgw_op.cc

index f1ccd7a353778bff22c21a9195aaa4271e41a3cb..e07e71a0e1f8e1a0e1060b84e9d88cf59c55f85f 100644 (file)
@@ -901,7 +901,7 @@ void RGWPutObj::execute()
     bool multipart = s->args.exists("uploadId");
 
     if (!multipart) {
-      if (s->content_length <= RGW_MAX_CHUNK_SIZE)
+      if (s->content_length <= RGW_MAX_CHUNK_SIZE && !chunked_upload)
         processor = new RGWPutObjProcessor_Plain();
       else
         processor = new RGWPutObjProcessor_Atomic();