Skip to content

Commit

Permalink
Fix OID overflow (citusdata#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
renevdzee committed May 7, 2021
1 parent 2c896d7 commit 8bd4bbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cstore_fdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1372,8 +1372,8 @@ cstore_clean_table_resources(PG_FUNCTION_ARGS)
struct stat fileStat;
int statResult = -1;

appendStringInfo(filePath, "%s/%s/%d/%d", DataDir, CSTORE_FDW_NAME,
(int) MyDatabaseId, (int) relationId);
appendStringInfo(filePath, "%s/%s/%u/%u", DataDir, CSTORE_FDW_NAME,
MyDatabaseId, relationId);

/*
* Check to see if the file exist first. This is the only way to
Expand Down

0 comments on commit 8bd4bbf

Please sign in to comment.