Skip to content

Commit

Permalink
Update src/common/pg_tde_utils.c
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Pogrebnoi <[email protected]>
  • Loading branch information
codeforall and dAdAbird authored Jul 5, 2024
1 parent 7f3d4fe commit 6298d44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/pg_tde_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ extract_json_option_value(Datum top_json, const char* field_name)
char *
pg_tde_get_tde_file_dir(Oid dbOid, Oid spcOid)
{
/* If this is a global space, than the call might be in a critial section
* (during XLog write) so we can't do GetDatabasePath as it calls palloc()
/* `dbOid` is set to a value for the XLog keys caching but GetDatabasePath()
* expects it (`dbOid`) to be `0` if this is a global space.
*/
if (spcOid == GLOBALTABLESPACE_OID)
return pstrdup("global");
Expand Down

0 comments on commit 6298d44

Please sign in to comment.