!4665 修复getWeights函数静态全局变量缺陷

Merge pull request !4665 from 李秦朗/seq
This commit is contained in:
opengauss_bot
2024-01-23 09:59:58 +00:00
committed by Gitee
2 changed files with 7 additions and 1 deletions

View File

@ -70,6 +70,8 @@
#include "tcop/dest.h"
#include "og_record_time.h"
#define TSRANK_WEIGHTS_LEN 4
typedef void (*pg_on_exit_callback)(int code, Datum arg);
/* all session level attribute which expose to user. */
@ -691,6 +693,9 @@ typedef struct knl_u_utils_context {
HTAB* set_user_params_htab;
DestReceiver* spi_printtupDR;
/* var in tsrank.cpp */
float tsrankWs[TSRANK_WEIGHTS_LEN];
} knl_u_utils_context;
typedef struct knl_u_security_context {