rocksdb/utilities/backupable
Andrew Kryczka f8e90e8753 Get file attributes in bulk for VerifyBackup and CreateNewBackup
Summary:
For VerifyBackup(), backup files can be spread across "shared/",
"shared_checksum/", and "private/" subdirectories, so we have to
bulk get all three.

For CreateNewBackup(), we make two separate bulk calls: one for the
data files and one for WAL files.

There is also a new helper function, ExtendPathnameToSizeBytes(),
that translates the file attributes vector to a map. I decided to leave
GetChildrenFileAttributes()'s (from D53781) return type as vector to
keep it consistent with GetChildren().

Depends on D53781.

Test Plan:
verified relevant unit tests

  $ ./backupable_db_test

Reviewers: IslamAbdelRahman, sdong

Reviewed By: sdong

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D53919
2016-03-01 19:33:33 -08:00
..
backupable_db_test.cc Get file attributes in bulk for VerifyBackup and CreateNewBackup 2016-03-01 19:33:33 -08:00
backupable_db_testutil.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
backupable_db.cc Get file attributes in bulk for VerifyBackup and CreateNewBackup 2016-03-01 19:33:33 -08:00