修复CheckTimeout TimestampTz和float类型运算导致的精度丢失问题

This commit is contained in:
chenxiaobin
2022-04-01 02:17:51 +00:00
committed by Gitee
parent ea938c947e
commit 9f7da01725

View File

@ -93,7 +93,7 @@
#include "utils/relcache.h" #include "utils/relcache.h"
static const int NAPTIME_PER_CYCLE = 10; /* max sleep time between cycles (10ms) */ static const int NAPTIME_PER_CYCLE = 10; /* max sleep time between cycles (10ms) */
static const float HALF = 0.5; static const double HALF = 0.5;
typedef struct FlushPosition { typedef struct FlushPosition {
dlist_node node; dlist_node node;