Skip to content

Commit

Permalink
use TimestampTz instead of time_t
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightMurloc committed Nov 30, 2023
1 parent 800adc1 commit 7ff7717
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/gp_activetable.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ TimestampTz active_tables_last_overflow_report = 0;
* dbid will be removed from it when droping diskquota extension
*/
HTAB *altered_reloid_cache = NULL; // Set<Oid>
time_t altered_reloid_cache_last_overflow_report = 0;
TimestampTz altered_reloid_cache_last_overflow_report = 0;

#define ALTERED_RELOID_CACHE_ENTER(keyPtr, foundPtr) \
shm_hash_enter(altered_reloid_cache, keyPtr, foundPtr, diskquota_max_active_tables, \
Expand Down
4 changes: 2 additions & 2 deletions src/quotamodel.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ static TimestampTz table_size_last_overflow_report = 0;
static HTAB *disk_quota_reject_map = NULL;
static HTAB *local_disk_quota_reject_map = NULL;

static time_t disk_quota_reject_last_overflow_report = 0;
static time_t local_disk_quota_reject_last_overflow_report = 0;
static TimestampTz disk_quota_reject_last_overflow_report = 0;
static TimestampTz local_disk_quota_reject_last_overflow_report = 0;

#define REJECT_MAP_ENTER(keyPtr, foundPtr) \
shm_hash_enter(disk_quota_reject_map, keyPtr, foundPtr, MAX_DISK_QUOTA_REJECT_ENTRIES, \
Expand Down
2 changes: 1 addition & 1 deletion src/relation_cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
HTAB *relation_cache = NULL;
HTAB *relid_cache = NULL;

extern time_t active_tables_last_overflow_report;
extern TimestampTz active_tables_last_overflow_report;

#define RELATION_CACHE_ENTER(keyPtr, foundPtr) \
shm_hash_enter(relation_cache, keyPtr, foundPtr, diskquota_max_active_tables, \
Expand Down

0 comments on commit 7ff7717

Please sign in to comment.