From: Yehuda Sadeh Date: Fri, 23 Jul 2010 21:07:02 +0000 (-0700) Subject: rgw: fix return code for prepare_get_obj() on the fs storage X-Git-Tag: v0.21~37 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=d9ff7e09fc953418f38c226c6980f428d3ba126b;p=ceph.git rgw: fix return code for prepare_get_obj() on the fs storage --- diff --git a/src/rgw/rgw_fs.cc b/src/rgw/rgw_fs.cc index b4c5de5bbf4ac..6e039f4b163c8 100644 --- a/src/rgw/rgw_fs.cc +++ b/src/rgw/rgw_fs.cc @@ -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; } }