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,37 +369,46 @@ export class ServerPropertiesDialog extends ObjectManagementDialogBase<Server, S
|
|||||||
let nodes: NumaNode[] = this.objectInfo.numaNodes;
|
let nodes: NumaNode[] = this.objectInfo.numaNodes;
|
||||||
let nodeTableList: azdata.TableComponent[] = [];
|
let nodeTableList: azdata.TableComponent[] = [];
|
||||||
let tableGroups: azdata.GroupContainer[] = [];
|
let tableGroups: azdata.GroupContainer[] = [];
|
||||||
for (let node of nodes) {
|
|
||||||
let table = this.createProcessorTable(node);
|
if (isEnabled) {
|
||||||
nodeTableList.push(table);
|
for (let node of nodes) {
|
||||||
tableGroups.push(this.createGroup(localizedConstants.serverNumaNodeLabel(node.numaNodeId), [table], true));
|
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.autoSetProcessorAffinityMaskForAllCheckbox = this.createCheckbox(localizedConstants.autoSetProcessorAffinityMaskForAllText, async (newValue) => {
|
||||||
this.objectInfo.autoProcessorAffinityMaskForAll = newValue;
|
this.objectInfo.autoProcessorAffinityMaskForAll = newValue;
|
||||||
for (let table of nodeTableList) {
|
if (isEnabled) {
|
||||||
let newData = table.data;
|
for (let table of nodeTableList) {
|
||||||
for (let i = 0; i < newData.length; i++) {
|
let newData = table.data;
|
||||||
if (newValue) {
|
for (let i = 0; i < newData.length; i++) {
|
||||||
// if affinity mask for all is checked, then uncheck the individual processors
|
if (newValue) {
|
||||||
newData[i][AffinityType.ProcessorAffinity] = false;
|
// if affinity mask for all is checked, then uncheck the individual processors
|
||||||
|
newData[i][AffinityType.ProcessorAffinity] = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
await this.setTableData(table, newData);
|
||||||
}
|
}
|
||||||
await this.setTableData(table, newData);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}, this.objectInfo.autoProcessorAffinityMaskForAll, isEnabled);
|
}, this.objectInfo.autoProcessorAffinityMaskForAll, isEnabled);
|
||||||
|
|
||||||
this.autoSetProcessorIOAffinityMaskForAllCheckbox = this.createCheckbox(localizedConstants.autoSetProcessorAffinityIOMaskForAllText, async (newValue) => {
|
this.autoSetProcessorIOAffinityMaskForAllCheckbox = this.createCheckbox(localizedConstants.autoSetProcessorAffinityIOMaskForAllText, async (newValue) => {
|
||||||
this.objectInfo.autoProcessorAffinityIOMaskForAll = newValue;
|
this.objectInfo.autoProcessorAffinityIOMaskForAll = newValue;
|
||||||
for (let table of nodeTableList) {
|
if (isEnabled) {
|
||||||
let newData = table.data;
|
for (let table of nodeTableList) {
|
||||||
for (let i = 0; i < newData.length; i++) {
|
let newData = table.data;
|
||||||
if (newValue) {
|
for (let i = 0; i < newData.length; i++) {
|
||||||
// if IO affinity mask for all is checked, then uncheck the individual processors
|
if (newValue) {
|
||||||
newData[i][AffinityType.IOAffinity] = false;
|
// if IO affinity mask for all is checked, then uncheck the individual processors
|
||||||
|
newData[i][AffinityType.IOAffinity] = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
await this.setTableData(table, newData);
|
||||||
|
this.resetNumaNodes();
|
||||||
}
|
}
|
||||||
await this.setTableData(table, newData);
|
|
||||||
this.resetNumaNodes();
|
|
||||||
}
|
}
|
||||||
}, this.objectInfo.autoProcessorAffinityIOMaskForAll, isEnabled);
|
}, this.objectInfo.autoProcessorAffinityIOMaskForAll, isEnabled);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user