mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
librgw: incr rework stat
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
This commit is contained in:
parent
3781027575
commit
5725721fe4
@ -300,6 +300,7 @@ int rgw_lookup(struct rgw_fs *rgw_fs,
|
||||
rgw_fh = parent->ref();
|
||||
} else {
|
||||
/* name lookup in root--for now) just get a handle */
|
||||
/* XXX RGWStatBucket? */
|
||||
LookupFHResult fhr = fs->lookup_fh(parent, path);
|
||||
rgw_fh = get<0>(fhr);
|
||||
|
||||
@ -307,6 +308,8 @@ int rgw_lookup(struct rgw_fs *rgw_fs,
|
||||
return -ENOMEM;
|
||||
}
|
||||
} else {
|
||||
/* XXX need to stat either-of <object_name>, <object_name/>,
|
||||
* only one of which can exist; atomicity? */
|
||||
std::string object_name{path};
|
||||
RGWStatObjRequest req(cct, fs->get_user(),
|
||||
parent->bucket_name(), object_name,
|
||||
|
Loading…
Reference in New Issue
Block a user