Skip to content

Instantly share code, notes, and snippets.

@zaitcev
Created January 30, 2016 03:48
Show Gist options
  • Save zaitcev/2980329845d2da4bcf38 to your computer and use it in GitHub Desktop.
Save zaitcev/2980329845d2da4bcf38 to your computer and use it in GitHub Desktop.
Counter-proposal for pull/7408
commit 2213f9db9f87ee75203980784d8ea43d882cf2e2
Author: Pete Zaitcev <zaitcev@kotori.zaitcev.us>
Date: Fri Jan 29 20:43:43 2016 -0700
Counter-fix for pull/7408
diff --git a/src/rgw/rgw_rest_metadata.h b/src/rgw/rgw_rest_metadata.h
index 7f3cf1f..e68f9d3 100644
--- a/src/rgw/rgw_rest_metadata.h
+++ b/src/rgw/rgw_rest_metadata.h
@@ -24,6 +24,11 @@ public:
}
void execute();
virtual const string name();
+ int postauth_init() {
+ /* We only preserve the fake "bucket" for a later test on empty. */
+ s->bucket_name = s->init_state.url_bucket;
+ return 0;
+ }
};
class RGWOp_Metadata_Get : public RGWRESTOp {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment