You've already forked mariadb-columnstore-engine
							
							
				mirror of
				https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
				synced 2025-11-03 17:13:17 +03:00 
			
		
		
		
	* Fix clang warnings * Remove vim tab guides * initialize variables * 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length * Fix ISO C++17 does not allow 'register' storage class specifier for outdated bison * chars are unsigned on ARM, having if (ival < 0) always false * chars are unsigned by default on ARM and comparison with -1 if always true
		
			
				
	
	
		
			75 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			75 lines
		
	
	
		
			2.3 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. */
 | 
						|
 | 
						|
// $Id: cacheutils.h 4051 2013-08-09 22:38:47Z wweeks $
 | 
						|
//
 | 
						|
/** @file */
 | 
						|
 | 
						|
#pragma once
 | 
						|
 | 
						|
#include "brmtypes.h"
 | 
						|
 | 
						|
/**
 | 
						|
 * block cache utilities
 | 
						|
 */
 | 
						|
namespace cacheutils
 | 
						|
{
 | 
						|
/** @brief flush the block cache
 | 
						|
 *
 | 
						|
 * Use the config file and messaging to signal all PrimProc's to flush their caches.
 | 
						|
 */
 | 
						|
int flushPrimProcCache();
 | 
						|
 | 
						|
/** @brief flush these blocks from cache
 | 
						|
 *
 | 
						|
 * Use the config file and messaging to signal all PrimProc's to flush their caches of any of
 | 
						|
 * the specified LBID@@Vers.
 | 
						|
 */
 | 
						|
int flushPrimProcBlocks(const BRM::BlockList_t& list);
 | 
						|
 | 
						|
/** @brief flush all version of blocks from cache
 | 
						|
 *
 | 
						|
 * Use the config file and messaging to signal all PrimProc's to flush their caches of any of
 | 
						|
 * the specified LBIDs.
 | 
						|
 */
 | 
						|
int flushPrimProcAllverBlocks(const std::vector<BRM::LBID_t>& list);
 | 
						|
 | 
						|
/** @brief flush all versions of all lbids belonging to the given oids.
 | 
						|
 *
 | 
						|
 * Flush all versions of all lbids belonging to the given oids.
 | 
						|
 */
 | 
						|
int flushOIDsFromCache(const std::vector<BRM::OID_t>&);
 | 
						|
 | 
						|
/** @brief Flush all versions of all lbids for the given OIDs and partition number.
 | 
						|
 *
 | 
						|
 * Flush all versions of all lbids for the given OIDs and partition number.
 | 
						|
 */
 | 
						|
int flushPartition(const std::vector<BRM::OID_t>&, std::set<BRM::LogicalPartition>& partitionNum);
 | 
						|
 | 
						|
/** @brief drop file descriptor cache
 | 
						|
 *
 | 
						|
 * Use the config file and messaging to signal all PrimProc's to drop the fd cache
 | 
						|
 */
 | 
						|
int dropPrimProcFdCache();
 | 
						|
/** @brief drop the files from file descriptor cache
 | 
						|
 *
 | 
						|
 * Use the config file and messaging to signal all PrimProc's to drop the fd cache
 | 
						|
 */
 | 
						|
int purgePrimProcFdCache(const std::vector<BRM::FileInfo> files, const int pmId);
 | 
						|
 | 
						|
}  // namespace cacheutils
 |