]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rados_sync: in export, download, then rename
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Thu, 2 Jun 2011 23:40:44 +0000 (16:40 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Thu, 2 Jun 2011 23:48:08 +0000 (16:48 -0700)
commit0f3224e172a077155f64897c8a3665fea6d5d892
tree69856ba319dcfb4d18a76ff55887a27fdad0254f
parent780322db76ffed7bb9bd6f58a5c3d610fff97bf4
rados_sync: in export, download, then rename

Download files to a 'temporary' name and then rename them when they are
complete. If the download gets aborted halfway through, this prevents
rados sync from getting confused next time when it sees the downloaded
file. This is similar to how rsync operates.

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