You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// the master table moudleName must be 'ingester', the Controller adds datanode information according to the name of the request is 'ingester'.
451
-
m.masterTable=NewPlatformInfoTable(m.ips, m.port, 0, m.rpcMaxMsgSize, MASTER_TABLE_MOUDLE_NANE, m.nodeIP, m.receiver, true, m)
450
+
// the master table moduleName must be 'ingester', the Controller adds datanode information according to the name of the request is 'ingester'.
451
+
m.masterTable=NewPlatformInfoTable(m.ips, m.port, 0, m.rpcMaxMsgSize, MASTER_TABLE_MODULE_NAME, m.nodeIP, m.receiver, true, m)
452
452
m.masterTable.Start()
453
-
ifmoudleName==MASTER_TABLE_MOUDLE_NANE {
453
+
ifmoduleName==MASTER_TABLE_MODULE_NAME {
454
454
m.tableLock.Unlock()
455
455
returnm.masterTable, nil
456
456
}
457
457
}
458
458
m.tableLock.Unlock()
459
-
ifmoudleName==MASTER_TABLE_MOUDLE_NANE {
459
+
ifmoduleName==MASTER_TABLE_MODULE_NAME {
460
460
returnm.masterTable, nil
461
461
}
462
462
463
463
index:=int(atomic.AddUint32(&m.slaveCount, 1)) -1
464
464
ifindex>=m.maxSlaveTableSize {
465
-
err:=fmt.Errorf("new platformData table %s failed, slave talbes has reached the maximum capacity(%d) and cannot be added", moudleName, m.maxSlaveTableSize)
465
+
err:=fmt.Errorf("new platformData table %s failed, slave tables has reached the maximum capacity(%d) and cannot be added", moduleName, m.maxSlaveTableSize)
466
466
log.Error(err)
467
467
returnnil, err
468
468
}
469
-
m.slaveTables[index] =NewPlatformInfoTable(m.ips, m.port, index, m.rpcMaxMsgSize, moudleName, m.nodeIP, m.receiver, false, m)
469
+
m.slaveTables[index] =NewPlatformInfoTable(m.ips, m.port, index, m.rpcMaxMsgSize, moduleName, m.nodeIP, m.receiver, false, m)
0 commit comments