report wdr snapshot table statistics

This commit is contained in:
LiHeng 2021-07-10 02:41:42 +00:00 committed by cchen676
parent 217801b8e6
commit ba1300e7bb
1 changed files with 3 additions and 0 deletions

View File

@ -1444,6 +1444,9 @@ void SnapshotNameSpace::SubSnapshotMain(void)
SnapshotNameSpace::take_snapshot();
PopActiveSnapshot();
finish_xact_command();
if (OidIsValid(u_sess->proc_cxt.MyDatabaseId)) {
pgstat_report_stat(true);
}
ereport(LOG, (errcode(ERRCODE_SUCCESSFUL_COMPLETION), errmsg("WDR snapshot end")));
/* a snapshot has token on next_timestamp, we need get next_timestamp */