Updated to new Database API.

This commit is contained in:
Stephen Atherton 2019-03-05 12:44:28 -08:00
parent 2f7d559442
commit 337a5aa1fe
1 changed files with 2 additions and 2 deletions

View File

@ -1917,14 +1917,14 @@ ACTOR Future<Void> runRestore(std::string destClusterFile, std::string originalC
throw restore_error();
}
state Database origDb = wait(Cluster::createCluster(originalClusterFile, Cluster::API_VERSION_LATEST)->createDatabase(LiteralStringRef("DB")));
state Database origDb = Database::createDatabase(originalClusterFile, Database::API_VERSION_LATEST);
Version v = wait(timeKeeperVersionFromDatetime(targetTimestamp, origDb));
printf("Timestamp '%s' resolves to version %lld\n", targetTimestamp.c_str(), v);
targetVersion = v;
}
try {
state Database db = wait(Cluster::createCluster(destClusterFile, Cluster::API_VERSION_LATEST)->createDatabase(LiteralStringRef("DB")));
state Database db = Database::createDatabase(destClusterFile, Database::API_VERSION_LATEST);
state FileBackupAgent backupAgent;
state Reference<IBackupContainer> bc = IBackupContainer::openContainer(container);