]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librgw: incr rework stat
authorMatt Benjamin <mbenjamin@redhat.com>
Wed, 2 Dec 2015 15:44:19 +0000 (10:44 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:06:12 +0000 (12:06 -0500)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file.cc

index a7cce8b2019d2b4f30b47993d7379e883b30bf42..295b099348666eedda4cfe7cee99de699087f38d 100644 (file)
@@ -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,