]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_file: encode ux attrs in mkdir2
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 12 Apr 2016 01:37:39 +0000 (21:37 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Tue, 12 Apr 2016 20:11:09 +0000 (16:11 -0400)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file.cc

index 16f4b0efee10c1970dc1480bf86fae454f482802..3cab45f675a56e334eef0fee0f4ee8380e51759d 100644 (file)
@@ -346,6 +346,7 @@ namespace rgw {
 
     LookupFHResult fhr;
     RGWFileHandle* rgw_fh = nullptr;
+    buffer::list ux_attrs;
 
     fhr = lookup_fh(parent, name,
                    RGWFileHandle::FLAG_CREATE|
@@ -353,9 +354,10 @@ namespace rgw {
                    RGWFileHandle::FLAG_LOCK);
     rgw_fh = get<0>(fhr);
     if (rgw_fh) {
-      /* XXX unify timestamps */
       rgw_fh->create_stat(st, mask);
       rgw_fh->set_times(real_clock::now());
+      /* save attrs */
+      rgw_fh->encode_attrs(ux_attrs);
       rgw_fh->stat(st);
       get<0>(mkr) = rgw_fh;
     } else {