Skip to content

Commit

Permalink
Fix lwlock compilation error (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
dutow authored Oct 2, 2024
1 parent 4161e7a commit f4c065e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pg_tde_event_capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ pg_tde_ddl_command_start_capture(PG_FUNCTION_ARGS)

tablespace_oid = stmt->tablespacename != NULL ? get_tablespace_oid(stmt->tablespacename, false)
: MyDatabaseTableSpace;
principal_key = GetPrincipalKey(MyDatabaseId, tablespace_oid);
LWLockAcquire(tde_lwlock_enc_keys(), LW_SHARED);
principal_key = GetPrincipalKey(MyDatabaseId, tablespace_oid, LW_SHARED);
LWLockRelease(tde_lwlock_enc_keys());
if (principal_key == NULL)
{
ereport(ERROR,
Expand Down

0 comments on commit f4c065e

Please sign in to comment.