Skip to content

Commit

Permalink
Add comment on InternalKey caching
Browse files Browse the repository at this point in the history
  • Loading branch information
dAdAbird committed Jun 21, 2024
1 parent 9302137 commit d4181b6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/catalog/tde_global_catalog.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ init_gl_catalog_keys(void)
enc_rel_key_data = tde_encrypt_rel_key(mkey, rel_key_data, rlocator);
pg_tde_write_key_map_entry(rlocator, enc_rel_key_data, &mkey->keyInfo);

/*
* TODO: move global catalog internal keys into own cache. This cache should
* be in the TopMemmoryContext because of SSL contexts
* (see https://github.com/Percona-Lab/pg_tde/pull/214#discussion_r1648998317)
*/
pg_tde_put_key_into_map(rlocator->relNumber, rel_key_data);
TDEPutGlCatKeyInCache(mkey);
}
Expand Down

0 comments on commit d4181b6

Please sign in to comment.