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

This commit is contained in:
chenxiaobin 2022-04-01 02:17:51 +00:00 committed by Gitee
parent ea938c947e
commit 9f7da01725
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@
#include "utils/relcache.h"
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 {
dlist_node node;