]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: include size in object_info_t
authorSage Weil <sage@newdream.net>
Wed, 10 Jun 2009 03:33:15 +0000 (20:33 -0700)
committerSage Weil <sage@newdream.net>
Wed, 10 Jun 2009 04:24:26 +0000 (21:24 -0700)
commit3a3bd4f6addf5d79652d595ab9b241778e08e80c
tree8b4b6859639deaee7106166ff9f2d5f4ee6b6656
parent8ac00cb15cb4d3935f55f9a623fd5f28059db29c
osd: include size in object_info_t

The main advantage here, aside from slightly decluttering the
code, is to avoid a stat() in get_object_context.  We just
getxattr and that will implicitly tell us if the object
exists.  (If the file exists but the OI_ATTR xattr doesn't,
the object is busted anyway.)
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h