Bug fix: fdbrestore was not using a default range set.

This commit is contained in:
Stephen Atherton 2019-03-06 01:57:03 -08:00
parent 28e67aa041
commit 888c4764d3
1 changed files with 4 additions and 0 deletions

View File

@ -1900,6 +1900,10 @@ Reference<IBackupContainer> openBackupContainer(const char *name, std::string de
}
ACTOR Future<Void> runRestore(std::string destClusterFile, std::string originalClusterFile, std::string tagName, std::string container, Standalone<VectorRef<KeyRangeRef>> ranges, Version targetVersion, std::string targetTimestamp, bool performRestore, bool verbose, bool waitForDone, std::string addPrefix, std::string removePrefix) {
if(ranges.empty()) {
ranges.push_back_deep(ranges.arena(), normalKeys);
}
if(targetVersion != invalidVersion && !targetTimestamp.empty()) {
fprintf(stderr, "Restore target version and target timestamp cannot both be specified\n");
throw restore_error();