mirror of https://github.com/citusdata/citus.git
25 lines
760 B
C
25 lines
760 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* shard_cleaner.h
|
|
* Type and function declarations used in background shard cleaning
|
|
*
|
|
* Copyright (c) 2018, Citus Data, Inc.
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
|
|
#ifndef CITUS_SHARD_CLEANER_H
|
|
#define CITUS_SHARD_CLEANER_H
|
|
|
|
/* GUC to configure deferred shard deletion */
|
|
extern int DeferShardDeleteInterval;
|
|
extern bool DeferShardDeleteOnMove;
|
|
extern double DesiredPercentFreeAfterMove;
|
|
extern bool CheckAvailableSpaceBeforeMove;
|
|
|
|
extern int TryDropOrphanedShards(bool waitForLocks);
|
|
extern int DropOrphanedShards(bool waitForLocks);
|
|
extern void DropOrphanedShardsInSeparateTransaction(void);
|
|
|
|
#endif /*CITUS_SHARD_CLEANER_H */
|