librgw: make_fhk put base name, object_name in wrong order

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
This commit is contained in:
Matt Benjamin 2015-11-30 17:15:19 -05:00
parent 3e6e4ed25c
commit 13bc25a18b

View File

@ -261,7 +261,7 @@ namespace rgw {
if (depth <= 1)
return fh_key(fhk.fh_hk.object, name.c_str());
else {
std::vector<const std::string*> segments = { &object_name(), &name };
std::vector<const std::string*> segments = { &name, &object_name() };
while (parent && !parent->is_bucket())
segments.push_back(&parent->object_name());
/* hash path */