From 48070ea31a8acc603e15ee8d1999376c8ee78f51 Mon Sep 17 00:00:00 2001 From: Etienne Chauchot Date: Thu, 30 Jun 2022 20:02:03 +0200 Subject: [PATCH] Add Talend copyright and GPL V2 notice --- ddMySqlBinLogCapture/MeasurementPrecision.h | 17 +++++++++- ddMySqlBinLogCapture/MyLogFile.h | 17 +++++++++- ddMySqlBinLogCapture/Resource.rc | Bin 5114 -> 5108 bytes ddMySqlBinLogCapture/StdAfx.h | 16 +++++++++ ddMySqlBinLogCapture/StdOutRedirect.h | 17 ++++++++++ ddMySqlBinLogCapture/ddBinlogLib.h | 18 ++++++++-- .../ddmysqlbinlog.cc | 4 +-- ddMySqlBinLogCapture/ddMariadb/ddMariadb.cpp | 19 +++++++++-- ddMySqlBinLogCapture/ddMariadb/ddMariadb.h | 17 +++++++++- ddMySqlBinLogCapture/ddMySqlBinLogCapture.cpp | 31 +++++++++++++----- ddMySqlBinLogCapture/ddbinlogdll.cpp | 21 ++++++++++-- ddMySqlBinLogCapture/synchronization.h | 17 +++++++++- 12 files changed, 173 insertions(+), 21 deletions(-) diff --git a/ddMySqlBinLogCapture/MeasurementPrecision.h b/ddMySqlBinLogCapture/MeasurementPrecision.h index 2bf990d..2e14661 100644 --- a/ddMySqlBinLogCapture/MeasurementPrecision.h +++ b/ddMySqlBinLogCapture/MeasurementPrecision.h @@ -1,3 +1,19 @@ +/* Copyright (C) 2021-2022 Talend Inc. - www.talend.com + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free + Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + MA 02111-1301, USA */ ////////////////////////////////////////////////////////////////////////////////// // // @@ -7,7 +23,6 @@ // // PURPOSE :A wrapper for measurement precision // -// MANUFACTURER :Gamma Soft // // DATE :01/07/2011 // diff --git a/ddMySqlBinLogCapture/MyLogFile.h b/ddMySqlBinLogCapture/MyLogFile.h index 8d1bd81..963617c 100644 --- a/ddMySqlBinLogCapture/MyLogFile.h +++ b/ddMySqlBinLogCapture/MyLogFile.h @@ -1,3 +1,19 @@ +/* Copyright (C) 2021-2022 Talend Inc. - www.talend.com + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free + Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + MA 02111-1301, USA */ ////////////////////////////////////////////////////////////////////////////////// // // @@ -7,7 +23,6 @@ // // PURPOSE :A multithread debug log file wrapper // -// MANUFACTURER :Gamma Soft // // DATE :03/08/2011 // diff --git a/ddMySqlBinLogCapture/Resource.rc b/ddMySqlBinLogCapture/Resource.rc index 2c14b9d947b869fc34b601dcdc8920493143e80e..f20d2b6e228638ec031242f92fd337fa5ca4b261 100644 GIT binary patch delta 28 kcmeyR{zZMm9UkrwhD3%OhE#?;hLp*Pyr!F#cyF))0F=WCE&u=k delta 34 ocmeyO{!4ws9Ueh #include diff --git a/ddMySqlBinLogCapture/ddBinlogLib.h b/ddMySqlBinLogCapture/ddBinlogLib.h index 76400b7..df49512 100644 --- a/ddMySqlBinLogCapture/ddBinlogLib.h +++ b/ddMySqlBinLogCapture/ddBinlogLib.h @@ -1,8 +1,22 @@ +/* Copyright (C) 2021-2022 Talend Inc. - www.talend.com + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free + Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + MA 02111-1301, USA */ /* * ddBinlogLib.h - DataDistribution MariadDB C/C++ library * -* 2021 GammaSoft -* Gino Capogrosso * */ #ifndef DDBINLOG_H diff --git a/ddMySqlBinLogCapture/ddMariadb-Binlog-Lib/patched-mySqlBinlog-10_3_23/ddmysqlbinlog.cc b/ddMySqlBinLogCapture/ddMariadb-Binlog-Lib/patched-mySqlBinlog-10_3_23/ddmysqlbinlog.cc index 6eb8c28..241731b 100644 --- a/ddMySqlBinLogCapture/ddMariadb-Binlog-Lib/patched-mySqlBinlog-10_3_23/ddmysqlbinlog.cc +++ b/ddMySqlBinLogCapture/ddMariadb-Binlog-Lib/patched-mySqlBinlog-10_3_23/ddmysqlbinlog.cc @@ -3282,7 +3282,7 @@ static Exit_status dump_local_log_entries(PRINT_EVENT_INFO *print_event_info, } // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -// !!!!!!!!!!!!!!!!!!!!!! GAMMA SOFT !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +// !!!!!!!!!!!!!!!!!!!!!! START CUSTOM MODIFICATIONS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! //////////////////////////////////////// @@ -3577,7 +3577,7 @@ Exit_status StartReadBinLog(const char* pszLogName, unsigned long ulStartPositio } // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -// !!!!!!!!!!!!!!!!!!!!!! END GAMMA SOFT !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +// !!!!!!!!!!!!!!!!!!!!!! END CUSTOM MODIFICATIONS !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! diff --git a/ddMySqlBinLogCapture/ddMariadb/ddMariadb.cpp b/ddMySqlBinLogCapture/ddMariadb/ddMariadb.cpp index 02b74df..8186d56 100644 --- a/ddMySqlBinLogCapture/ddMariadb/ddMariadb.cpp +++ b/ddMySqlBinLogCapture/ddMariadb/ddMariadb.cpp @@ -1,3 +1,19 @@ +/* Copyright (C) 2021-2022 Talend Inc. - www.talend.com + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free + Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + MA 02111-1301, USA */ ////////////////////////////////////////////////////////////////////////////////// // // @@ -7,7 +23,6 @@ // // PURPOSE :Defines the exported functions for the DLL application. // -// MANUFACTURER :Gamma Soft // // DATE :29/12/2011 // @@ -240,7 +255,7 @@ DDMYSQL_API long PASCAL MyGetAffectedRows(void *handle) ////////////////////////////////////////////////////////////////////////////////////////////////////// // MyGetInfo -// Retrieve à string providing information about the most recently executed statement. +// Retrieve � string providing information about the most recently executed statement. // Only for the statement listed here: // INSERT INTO ... SELECT ... string format = Records: 100 Duplicates: 0 Warnings: 0 // INSERT INTO ... VALUES (...), ((...),(...) ... string format = Records: 3 Duplicates: 0 Warnings: 0 diff --git a/ddMySqlBinLogCapture/ddMariadb/ddMariadb.h b/ddMySqlBinLogCapture/ddMariadb/ddMariadb.h index 11100ed..271e910 100644 --- a/ddMySqlBinLogCapture/ddMariadb/ddMariadb.h +++ b/ddMySqlBinLogCapture/ddMariadb/ddMariadb.h @@ -1,10 +1,25 @@ +/* Copyright (C) 2021-2022 Talend Inc. - www.talend.com + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free + Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + MA 02111-1301, USA */ ////////////////////////////////////////////////////////////////////////////////// // // FILE :ddMariadb.h // // PURPOSE :Defines the exported functions for the DLL application. // -// MANUFACTURER :Gamma Soft // // DATE :29/12/2011 // diff --git a/ddMySqlBinLogCapture/ddMySqlBinLogCapture.cpp b/ddMySqlBinLogCapture/ddMySqlBinLogCapture.cpp index 3f5ed24..abf7a7d 100644 --- a/ddMySqlBinLogCapture/ddMySqlBinLogCapture.cpp +++ b/ddMySqlBinLogCapture/ddMySqlBinLogCapture.cpp @@ -1,8 +1,23 @@ +/* Copyright (C) 2021-2022 Talend Inc. - www.talend.com + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free + Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + MA 02111-1301, USA */ /** * MySQL / MariaDB Binlog capture + date 10/05/2022 * -* @author Gamma-soft -* @date 10/05/2022 */ #include "StdAfx.h" @@ -30,7 +45,7 @@ static const double UNIT_PER_SECOND = 10000000; #define NOT_EXIST -1 -#define COMPANY "GammaSoft" +#define COMPANY "Talend" #define PROJECT "DataDistribution" #define PROCESS_IDENTITY "ddMySqlBinLogCapture" #define SECTION_DDFOR "DD_for_MySql" @@ -522,7 +537,7 @@ void dd_log(char *msg) /** * Copies the first size characters of source to destination. * if nullChar is true, a terminating null character is added at the end of destination. - * @returns Returns à pointer to destination. + * @returns Returns � pointer to destination. */ char* ddstrncpy(char* destination, const char *source, int size, bool nullChar) { @@ -571,7 +586,7 @@ void cpyrtrim(char *destination, const char* source, unsigned int size) * * Copies the string pointed by source into the array pointed by dest * Convert uppercase to lowercase - * source must be à string with terminating null-characters + * source must be � string with terminating null-characters * A terminating null character is added at the end of dest * if length of source > iSizeDest only the iSizeDest-1 bytes will be copied * @@ -809,7 +824,7 @@ bool SendMessageToLogReader(char *pszProcessSender, int iMessage) printf("%s\n", g_szbuffer_Tmp); return false; } - // The named pipe is busy. Let’s wait for 2 seconds. + // The named pipe is busy. Let�s wait for 2 seconds. if (!WaitNamedPipe((LPSTR)g_szPipeName, 2000)) { dwError = GetLastSystemError(); @@ -893,8 +908,8 @@ bool LoadMySQLLib(char *pszLibName, char *pszMsg) NULL, // source dwError, // code d'erreur MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), - szErrorMsg, // où stocker la description - sizeof(szErrorMsg), // taille minimale à retourner + szErrorMsg, // o� stocker la description + sizeof(szErrorMsg), // taille minimale � retourner 0); if (pszMsg) diff --git a/ddMySqlBinLogCapture/ddbinlogdll.cpp b/ddMySqlBinLogCapture/ddbinlogdll.cpp index 7beefb3..cddd7ee 100644 --- a/ddMySqlBinLogCapture/ddbinlogdll.cpp +++ b/ddMySqlBinLogCapture/ddbinlogdll.cpp @@ -1,7 +1,22 @@ +/* Copyright (C) 2021-2022 Talend Inc. - www.talend.com + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free + Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + MA 02111-1301, USA */ /* * ddbinlogdll - DataDistribution binlog C/C++ library * -* 2021 GammaSoft * */ @@ -48,8 +63,8 @@ char* GetDllErrorBinlog(/* out */char *msg) NULL, // source error, // code d'erreur MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), - errorMsg, // où stocker la description - sizeof(errorMsg), // taille minimale à retourner + errorMsg, // o� stocker la description + sizeof(errorMsg), // taille minimale � retourner 0); sprintf(msg, "%ld - %s", error, errorMsg); return msg; diff --git a/ddMySqlBinLogCapture/synchronization.h b/ddMySqlBinLogCapture/synchronization.h index ec91358..a6bb35d 100644 --- a/ddMySqlBinLogCapture/synchronization.h +++ b/ddMySqlBinLogCapture/synchronization.h @@ -1,3 +1,19 @@ +/* Copyright (C) 2021-2022 Talend Inc. - www.talend.com + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free + Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + MA 02111-1301, USA */ ////////////////////////////////////////////////////////////////////////////////// // // @@ -7,7 +23,6 @@ // // PURPOSE :syncronisation wrapper // -// MANUFACTURER :Gamma Soft // // DATE :17/05/2013 //