Remove isPartitionedBackup()
This is no longer needed, since describeBackup() figures this out.
This commit is contained in:
parent
0cf6013357
commit
fd9caa88a0
|
@ -657,18 +657,6 @@ public:
|
|||
return dumpFileList_impl(Reference<BackupContainerFileSystem>::addRef(this), begin, end);
|
||||
}
|
||||
|
||||
ACTOR static Future<bool> isPartitionedBackup_impl(Reference<BackupContainerFileSystem> bc) {
|
||||
BackupFileList list = wait(bc->dumpFileList(0, std::numeric_limits<Version>::max()));
|
||||
for (const auto& file : list.logs) {
|
||||
if (file.isPartitionedLog()) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Future<bool> isPartitionedBackup() final {
|
||||
return isPartitionedBackup_impl(Reference<BackupContainerFileSystem>::addRef(this));
|
||||
}
|
||||
|
||||
static Version resolveRelativeVersion(Optional<Version> max, Version v, const char *name, Error e) {
|
||||
if(v == invalidVersion) {
|
||||
TraceEvent(SevError, "BackupExpireInvalidVersion").detail(name, v);
|
||||
|
|
|
@ -263,9 +263,6 @@ public:
|
|||
|
||||
virtual Future<BackupFileList> dumpFileList(Version begin = 0, Version end = std::numeric_limits<Version>::max()) = 0;
|
||||
|
||||
// If there are partitioned log files, then returns true; otherwise, returns false.
|
||||
virtual Future<bool> isPartitionedBackup() = 0;
|
||||
|
||||
// Get exactly the files necessary to restore to targetVersion. Returns non-present if
|
||||
// restore to given version is not possible.
|
||||
virtual Future<Optional<RestorableFileSet>> getRestoreSet(Version targetVersion) = 0;
|
||||
|
|
Loading…
Reference in New Issue