refs #5541 Allow to set slave server id
gitea/mylogger/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2023-04-25 18:42:21 +02:00
parent c3c5d2118e
commit 6bc39209d0
4 changed files with 6 additions and 4 deletions

View File

@ -7,6 +7,7 @@ restartTimeout: 30
queueFlushDelay: 200 queueFlushDelay: 200
maxBulkLog: 100 maxBulkLog: 100
upperCaseTable: true upperCaseTable: true
serverId: 1
srcDb: srcDb:
host: localhost host: localhost
port: 3306 port: 3306

View File

@ -119,7 +119,8 @@ module.exports = class MyLogger {
'updaterows', 'updaterows',
'deleterows' 'deleterows'
], ],
includeSchema includeSchema,
serverId: conf.serverId
}; };
if (conf.testMode) if (conf.testMode)

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "mylogger", "name": "mylogger",
"version": "0.1.10", "version": "0.1.11",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "mylogger", "name": "mylogger",
"version": "0.1.10", "version": "0.1.11",
"license": "GPL-3.0", "license": "GPL-3.0",
"dependencies": { "dependencies": {
"colors": "^1.4.0", "colors": "^1.4.0",

View File

@ -1,6 +1,6 @@
{ {
"name": "mylogger", "name": "mylogger",
"version": "0.1.10", "version": "0.1.11",
"author": "Verdnatura Levante SL", "author": "Verdnatura Levante SL",
"description": "MySQL and MariaDB logger using binary log", "description": "MySQL and MariaDB logger using binary log",
"license": "GPL-3.0", "license": "GPL-3.0",