You've already forked mariadb-columnstore-engine
							
							
				mirror of
				https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
				synced 2025-10-30 07:25:34 +03:00 
			
		
		
		
	This patch changes logic from counting all nodes to counting only read-write nodes when messaging about DML operations. feat(MCOL-6082): Multiple readers of dbroots using OamCache logic This patch introduces centralized logic of selecting what dbroot is accessible in PrimProc on what node. The logic is in OamCache for time being and can be moved later. Fix build
		
			
				
	
	
		
			60 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			60 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| /* Copyright (C) 2014 InfiniDB, Inc.
 | |
| 
 | |
|    This program is free software; you can redistribute it and/or
 | |
|    modify it under the terms of the GNU General Public License
 | |
|    as published by the Free Software Foundation; version 2 of
 | |
|    the License.
 | |
| 
 | |
|    This program 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 General Public License for more details.
 | |
| 
 | |
|    You should have received a copy of the GNU General Public License
 | |
|    along with this program; if not, write to the Free Software
 | |
|    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 | |
|    MA 02110-1301, USA. */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <unistd.h>
 | |
| 
 | |
| #include "bytestream.h"
 | |
| 
 | |
| #include "we_messages.h"
 | |
| #include "we_clients.h"
 | |
| #include "dbrm.h"
 | |
| #include "liboamcpp.h"
 | |
| #include "writeengine.h"
 | |
| #include "oamcache.h"
 | |
| 
 | |
| #define EXPORT
 | |
| 
 | |
| #include "dataconvert.h"
 | |
| 
 | |
| namespace WriteEngine
 | |
| {
 | |
| class WE_DDLCommandClient
 | |
| {
 | |
|  public:
 | |
|   EXPORT WE_DDLCommandClient();
 | |
|   EXPORT ~WE_DDLCommandClient();
 | |
|   /** @brief Update SYSCOLUMN nextval column for the columnoid with nextVal.
 | |
|    *
 | |
|    * Update SYSCOLUMN nextval column for the columnoid with nexValue.
 | |
|    * @param columnOid (in) The column OID
 | |
|    * @param nextVal (in) The partition number
 | |
|    * @return 0 on success, non-0 on error.
 | |
|    */
 | |
|   EXPORT uint8_t UpdateSyscolumnNextval(uint32_t columnOid, uint64_t nextVal, uint32_t sessionID = 0);
 | |
| 
 | |
|  private:
 | |
|   BRM::DBRM fDbrm;
 | |
|   WEClients* fWEClient;
 | |
|   oam::OamCache* fOamCache;
 | |
| };
 | |
| 
 | |
| }  // namespace WriteEngine
 | |
| 
 | |
| #undef EXPORT
 |