mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 01:25:37 -05:00
SQL-Migration extension - fix refresh reentrancy hang (#16482)
* Fix application hang on refresh * fix re-entrancy issue with refresh * adding additional refresh checking
This commit is contained in:
@@ -16,7 +16,7 @@ export class MigrationLocalStorage {
|
||||
}
|
||||
|
||||
public static async getMigrationsBySourceConnections(connectionProfile: azdata.connection.ConnectionProfile, refreshStatus?: boolean): Promise<MigrationContext[]> {
|
||||
|
||||
const undefinedSessionId = '{undefined}';
|
||||
const result: MigrationContext[] = [];
|
||||
const validMigrations: MigrationContext[] = [];
|
||||
|
||||
@@ -32,7 +32,7 @@ export class MigrationLocalStorage {
|
||||
migration.azureAccount,
|
||||
migration.subscription,
|
||||
migration.migrationContext,
|
||||
migration.sessionId!
|
||||
migration.sessionId ?? undefinedSessionId
|
||||
);
|
||||
migration.migrationContext.properties.sourceDatabaseName = sourceDatabase;
|
||||
migration.migrationContext.properties.backupConfiguration = backupConfiguration;
|
||||
@@ -41,7 +41,7 @@ export class MigrationLocalStorage {
|
||||
migration.azureAccount,
|
||||
migration.subscription,
|
||||
migration.asyncUrl,
|
||||
migration.sessionId!
|
||||
migration.sessionId ?? undefinedSessionId
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user