diff --git a/utilities/backupable/backupable_db.cc b/utilities/backupable/backupable_db.cc index 0dc7092b3..fb2a68b31 100644 --- a/utilities/backupable/backupable_db.cc +++ b/utilities/backupable/backupable_db.cc @@ -99,6 +99,8 @@ class BackupEngineImpl : public BackupEngine { } Status GarbageCollect() override; + // The returned BackupInfos are in chronological order, which means the + // latest backup comes last. void GetBackupInfo(std::vector* backup_info) override; void GetCorruptedBackups(std::vector* corrupt_backup_ids) override; Status RestoreDBFromBackup( @@ -1769,6 +1771,8 @@ class BackupEngineReadOnlyImpl : public BackupEngineReadOnly { virtual ~BackupEngineReadOnlyImpl() {} + // The returned BackupInfos are in chronological order, which means the + // latest backup comes last. virtual void GetBackupInfo(std::vector* backup_info) override { backup_engine_->GetBackupInfo(backup_info); }