mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
do not show individual processors in managed instance (#24302)
This commit is contained in:
@@ -369,13 +369,18 @@ export class ServerPropertiesDialog extends ObjectManagementDialogBase<Server, S
|
||||
let nodes: NumaNode[] = this.objectInfo.numaNodes;
|
||||
let nodeTableList: azdata.TableComponent[] = [];
|
||||
let tableGroups: azdata.GroupContainer[] = [];
|
||||
|
||||
if (isEnabled) {
|
||||
for (let node of nodes) {
|
||||
let table = this.createProcessorTable(node);
|
||||
nodeTableList.push(table);
|
||||
tableGroups.push(this.createGroup(localizedConstants.serverNumaNodeLabel(node.numaNodeId), [table], true));
|
||||
}
|
||||
}
|
||||
|
||||
this.autoSetProcessorAffinityMaskForAllCheckbox = this.createCheckbox(localizedConstants.autoSetProcessorAffinityMaskForAllText, async (newValue) => {
|
||||
this.objectInfo.autoProcessorAffinityMaskForAll = newValue;
|
||||
if (isEnabled) {
|
||||
for (let table of nodeTableList) {
|
||||
let newData = table.data;
|
||||
for (let i = 0; i < newData.length; i++) {
|
||||
@@ -386,10 +391,13 @@ export class ServerPropertiesDialog extends ObjectManagementDialogBase<Server, S
|
||||
}
|
||||
await this.setTableData(table, newData);
|
||||
}
|
||||
}
|
||||
|
||||
}, this.objectInfo.autoProcessorAffinityMaskForAll, isEnabled);
|
||||
|
||||
this.autoSetProcessorIOAffinityMaskForAllCheckbox = this.createCheckbox(localizedConstants.autoSetProcessorAffinityIOMaskForAllText, async (newValue) => {
|
||||
this.objectInfo.autoProcessorAffinityIOMaskForAll = newValue;
|
||||
if (isEnabled) {
|
||||
for (let table of nodeTableList) {
|
||||
let newData = table.data;
|
||||
for (let i = 0; i < newData.length; i++) {
|
||||
@@ -401,6 +409,7 @@ export class ServerPropertiesDialog extends ObjectManagementDialogBase<Server, S
|
||||
await this.setTableData(table, newData);
|
||||
this.resetNumaNodes();
|
||||
}
|
||||
}
|
||||
}, this.objectInfo.autoProcessorAffinityIOMaskForAll, isEnabled);
|
||||
|
||||
this.processorsSection = this.createGroup('', [
|
||||
|
||||
Reference in New Issue
Block a user