omap_clear() also removes all of object's xatts
os/DBObjectMap, FileStore: omap_clear should not remove xattrs
Prevously, FileStore::_omap_clear() used ObjectMap::clear(), which
incorrectly also blasts any stored xattrs. Instead, add
ObjectMap::clear_keys_header() to handle this case efficiently.
Signed-off-by: Samuel Just <email@example.com>
It's amazing that just notice it now.
I think it's a little related to feature(http://tracker.ceph.com/issues/7059). Maybe DBObjectMap need to introduce two new interface "clear_xattr",and "clear_omap".
I think we should update test/osd/RadosModel (ceph_test_rados) so that it stores separate data in xattrs and omap (right now it mirrors the content).. so that it notices this.
- Status changed from New to Resolved
Also available in: Atom