]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rados_sync: fix memory leak, other misc fixes
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 6 May 2011 23:41:28 +0000 (16:41 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 6 May 2011 23:41:28 +0000 (16:41 -0700)
commit5a726efcf0085add67ab89846a02f05be9eb2ce4
tree4bd35b198d68880bb4c23f1b64d8cd3aa301d679
parenta61484e6bca5cd981292307116b8cd8ba7b104e1
rados_sync: fix memory leak, other misc fixes

* Store BackedUpObject in auto_ptr to avoid memory leaks

* better comment for BackedUpObject::get_fs_path()

* xattrs: handle only_in_a list separately from diff list, since
librados complains if you call setxattr(foo) and there is already an
xattr foo.

* xattrs: add xattrs_to_str for debugging purposes

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
src/rados_sync.cc