]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: fix attributes for "special" test cases
authorMatt Benjamin <mbenjamin@redhat.com>
Sat, 2 Apr 2016 19:14:25 +0000 (15:14 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Tue, 5 Apr 2016 22:30:20 +0000 (18:30 -0400)
commitd84f55f3fe022dc11c1f8198c8275e0a1b967e12
tree22f2fa97f1883bb6e872266e5ab9ffeac1dca3a0
parent1bd1ffda8dec33597aed7f01fa5839be52f7f879
rgw_file:  fix attributes for "special" test cases

If a caller does an atomic create using rgw_lookup() and
RGW_LOOKUP_FLAG_CREATE, it needs to fix up the attributes using
create_stat().

For use outside of test cases, it probably needs an interlock also,
but for now, do just enough to satisfy existing attribute checks.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/test/librgw_file_nfsns.cc