]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix return code for prepare_get_obj() on the fs storage
authorYehuda Sadeh <yehuda@hq.newdream.net>
Fri, 23 Jul 2010 21:07:02 +0000 (14:07 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Tue, 27 Jul 2010 17:28:46 +0000 (10:28 -0700)
src/rgw/rgw_fs.cc

index b4c5de5bbf4acdaeebdd653cf13d6a4c8af45090..6e039f4b163c883a073438e2a7648f772adcabf9 100644 (file)
@@ -469,7 +469,7 @@ int RGWFS::prepare_get_obj(std::string& bucket, std::string& obj,
   if (mod_ptr) {
     if (st.st_mtime < *mod_ptr) {
       err->num = "304";
-      err->code = "PreconditionFailed";
+      err->code = "NotModified";
       goto done_err;
     }
   }