From 5725721fe4cbdd759af9d06dc72dc2801548bff9 Mon Sep 17 00:00:00 2001 From: Matt Benjamin Date: Wed, 2 Dec 2015 10:44:19 -0500 Subject: [PATCH] librgw: incr rework stat Signed-off-by: Matt Benjamin --- src/rgw/rgw_file.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rgw/rgw_file.cc b/src/rgw/rgw_file.cc index a7cce8b2019d2..295b099348666 100644 --- a/src/rgw/rgw_file.cc +++ b/src/rgw/rgw_file.cc @@ -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 , , + * only one of which can exist; atomicity? */ std::string object_name{path}; RGWStatObjRequest req(cct, fs->get_user(), parent->bucket_name(), object_name, -- 2.39.5