greenplumn storage_tablespace_xact 源码

  • 2022-08-18
  • 浏览 (529)

greenplumn storage_tablespace_xact 代码

文件路径:/src/backend/catalog/storage_tablespace_xact.c

/*-------------------------------------------------------------------------
 *
 * storage_tablespace_xact.c
 *
 *	  implement hooks for transactions and tablespace storage
 *
 * Portions Copyright (c) 2012-Present VMware, Inc. or its affiliates.
 *
 *
 * IDENTIFICATION
 *	  src/backend/catalog/storage_tablespace_xact.c
 *
 *-------------------------------------------------------------------------
 */
#include "postgres.h"

#include "access/xact_storage_tablespace.h"
#include "catalog/storage_tablespace.h"


/*
 * AtCommit_TablespaceStorage:
 *
 * Needs to happen before locks are released to ensure that no
 * concurrent sessions are using the tablespace storage.
 *
 */
void
AtCommit_TablespaceStorage(void)
{
	DoPendingTablespaceDeletionForCommit();
	UnscheduleTablespaceDirectoryDeletionForAbort();
}


/*
 * AtAbort_TablespaceStorage:
 *
 * Needs to happen before locks are released to ensure that no
 * concurrent sessions are using the tablespace storage.
 *
 */
void
AtAbort_TablespaceStorage(void)
{
	DoPendingTablespaceDeletionForAbort();
	UnscheduleTablespaceDirectoryDeletionForCommit();
}

相关信息

greenplumn 源码目录

相关文章

greenplumn aclchk 源码

greenplumn aoblkdir 源码

greenplumn aocatalog 源码

greenplumn aoseg 源码

greenplumn aovisimap 源码

greenplumn catalog 源码

greenplumn dependency 源码

greenplumn gp_fastsequence 源码

greenplumn gp_partition_template 源码

greenplumn gp_segment_config 源码

0  赞