]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
BackupEngine gluster-friendly file naming convention
authorAndrew Kryczka <andrewkr@fb.com>
Thu, 22 Feb 2018 01:33:14 +0000 (17:33 -0800)
committerAndrew Kryczka <andrewkr@fb.com>
Thu, 22 Feb 2018 23:20:26 +0000 (15:20 -0800)
commit37a5d3d2aa48a949d5af7d1cc8f98c43833cce79
tree7d4d67722d4a73695108afbb90528d42b553a040
parent25ac8ca06d583abd650c300485600790ac978630
BackupEngine gluster-friendly file naming convention

Summary:
Use the rsync tempfile naming convention in our `BackupEngine`. The temp file follows the format, `.<filename>.<suffix>`, which is later renamed to `<filename>`. We fix `tmp` as the `<suffix>` as we don't need to use random bytes for now. The benefit is gluster treats this tempfile naming convention specially and applies hashing only to `<filename>`, so the file won't need to be linked or moved when it's renamed. Our gluster team suggested this will make things operationally easier.
Closes https://github.com/facebook/rocksdb/pull/3463

Differential Revision: D6893333

Pulled By: ajkr

fbshipit-source-id: fd7622978f4b2487fce33cde40dd3124f16bcaa8
utilities/backupable/backupable_db.cc
utilities/backupable/backupable_db_test.cc