Go to the source code of this file.
◆ THROTTLING_FREQUENCY
#define THROTTLING_FREQUENCY 8 |
◆ bbsink_throttle
◆ bbsink_throttle_archive_contents()
static void bbsink_throttle_archive_contents |
( |
bbsink * |
sink, |
|
|
size_t |
len |
|
) |
| |
|
static |
◆ bbsink_throttle_begin_backup()
static void bbsink_throttle_begin_backup |
( |
bbsink * |
sink | ) |
|
|
static |
◆ bbsink_throttle_manifest_contents()
static void bbsink_throttle_manifest_contents |
( |
bbsink * |
sink, |
|
|
size_t |
len |
|
) |
| |
|
static |
◆ bbsink_throttle_new()
Definition at line 68 of file basebackup_throttle.c.
#define THROTTLING_FREQUENCY
static const bbsink_ops bbsink_throttle_ops
#define Assert(condition)
void * palloc0(Size size)
TimeOffset elapsed_min_unit
const bbsink_ops * bbs_ops
References Assert, bbsink_throttle::base, bbsink::bbs_next, bbsink::bbs_ops, bbsink_throttle_ops, bbsink_throttle::elapsed_min_unit, maxrate, next, palloc0(), THROTTLING_FREQUENCY, bbsink_throttle::throttling_sample, and USECS_PER_SEC.
Referenced by SendBaseBackup().
◆ throttle()
Definition at line 134 of file basebackup_throttle.c.
162 sleep = elapsed_min - elapsed;
177 (
long) (sleep / 1000),
178 WAIT_EVENT_BASE_BACKUP_THROTTLE);
void ResetLatch(Latch *latch)
int WaitLatch(Latch *latch, int wakeEvents, long timeout, uint32 wait_event_info)
#define WL_EXIT_ON_PM_DEATH
#define CHECK_FOR_INTERRUPTS()
References Assert, CHECK_FOR_INTERRUPTS, bbsink_throttle::elapsed_min_unit, GetCurrentTimestamp(), MyLatch, ResetLatch(), bbsink_throttle::throttled_last, bbsink_throttle::throttling_counter, bbsink_throttle::throttling_sample, WaitLatch(), WL_EXIT_ON_PM_DEATH, WL_LATCH_SET, and WL_TIMEOUT.
Referenced by bbsink_throttle_archive_contents(), and bbsink_throttle_manifest_contents().
◆ bbsink_throttle_ops
Initial value:= {
}
void bbsink_forward_begin_manifest(bbsink *sink)
void bbsink_forward_end_backup(bbsink *sink, XLogRecPtr endptr, TimeLineID endtli)
void bbsink_forward_cleanup(bbsink *sink)
void bbsink_forward_end_archive(bbsink *sink)
void bbsink_forward_begin_archive(bbsink *sink, const char *archive_name)
void bbsink_forward_end_manifest(bbsink *sink)
static void bbsink_throttle_archive_contents(bbsink *sink, size_t len)
static void bbsink_throttle_begin_backup(bbsink *sink)
static void bbsink_throttle_manifest_contents(bbsink *sink, size_t len)
Definition at line 46 of file basebackup_throttle.c.
Referenced by bbsink_throttle_new().