From d9ff7e09fc953418f38c226c6980f428d3ba126b Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Fri, 23 Jul 2010 14:07:02 -0700 Subject: [PATCH] rgw: fix return code for prepare_get_obj() on the fs storage --- src/rgw/rgw_fs.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_fs.cc b/src/rgw/rgw_fs.cc index b4c5de5bbf4..6e039f4b163 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; } }