Skip to content

Commit 4b4596e

Browse files
ZhengYa-0110SongZhen0704
authored andcommitted
feat: disable ID allocation for process
1 parent 79e9791 commit 4b4596e

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

server/controller/recorder/db/idmng/manager.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ func newIDManager(cfg RecorderConfig, orgID int) (*IDManager, error) {
7272
ctrlrcommon.RESOURCE_TYPE_POD_INGRESS_EN: newIDPool[mysqlmodel.PodIngress](mng.org, ctrlrcommon.RESOURCE_TYPE_POD_INGRESS_EN, cfg.ResourceMaxID1),
7373
ctrlrcommon.RESOURCE_TYPE_POD_GROUP_EN: newIDPool[mysqlmodel.PodGroup](mng.org, ctrlrcommon.RESOURCE_TYPE_POD_GROUP_EN, cfg.ResourceMaxID1),
7474
ctrlrcommon.RESOURCE_TYPE_POD_REPLICA_SET_EN: newIDPool[mysqlmodel.PodReplicaSet](mng.org, ctrlrcommon.RESOURCE_TYPE_POD_REPLICA_SET_EN, cfg.ResourceMaxID1),
75-
ctrlrcommon.RESOURCE_TYPE_PROCESS_EN: newIDPool[mysqlmodel.Process](mng.org, ctrlrcommon.RESOURCE_TYPE_PROCESS_EN, cfg.ResourceMaxID1),
7675
ctrlrcommon.RESOURCE_TYPE_GPROCESS_EN: newProcessGIDPool(mng.org, ctrlrcommon.RESOURCE_TYPE_GPROCESS_EN, cfg.ResourceMaxID1),
7776
ctrlrcommon.RESOURCE_TYPE_VTAP_EN: newIDPool[mysqlmodel.VTap](mng.org, ctrlrcommon.RESOURCE_TYPE_VTAP_EN, cfg.ResourceMaxID0),
7877
}

server/controller/recorder/db/process.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func NewProcess() *Process {
3030
newOperatorBase[*mysqlmodel.Process](
3131
ctrlrcommon.RESOURCE_TYPE_PROCESS_EN,
3232
true,
33-
true,
33+
false,
3434
),
3535
}
3636
return operator

server/controller/recorder/updater/process.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ func (p *Process) beforeAddPage(dbData []*metadbmodel.Process) ([]*metadbmodel.P
213213
identifierToNewGID[identifier] = item.GID
214214
}
215215
}
216+
log.Infof("%s identifier generation completed", p.resourceType, p.metadata.LogPrefixes)
216217
var createdGIDs []uint32
217218
if len(identifierToNewGID) > 0 {
218219
// TODO combine with operator module

0 commit comments

Comments
 (0)