]> 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 21:53:42 +0000 (13:53 -0800)
commit2f078d57e734214839dc7843daab9994840992f4
treee120f85c7914d95ddbdac55fbd3604b9e24f3b5d
parentac329cce6e4b482d086cc9c8fa1689914a753a36
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