Skip to content

Commit f0cb6c7

Browse files
committed
cleanups
1 parent 24fa1ab commit f0cb6c7

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/include/postgres_secret_storage.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ class PostgresCatalog;
1818

1919
class PostgresSecretStorage : public SecretStorage {
2020
public:
21-
PostgresSecretStorage(const string &name_p, DatabaseInstance &db,
22-
PostgresCatalog &postgres_catalog, SecretManager &secret_manager);
21+
PostgresSecretStorage(const string &name_p, PostgresCatalog &postgres_catalog, SecretManager &secret_manager);
2322
~PostgresSecretStorage() override;
2423

2524
bool IncludeInLookups() override { return true; }
@@ -43,7 +42,6 @@ class PostgresSecretStorage : public SecretStorage {
4342
unique_ptr<const BaseSecret> DeserializeSecret(const string &hex_string, const string &secret_name);
4443
PostgresCatalog *GetPostgresCatalog(ClientContext &context);
4544

46-
DatabaseInstance &db;
4745
SecretManager &secret_manager;
4846
string attached_database_name;
4947
string secrets_table_name;

src/postgres_secret_storage.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ int64_t PostgresSecretStorage::GetNextTieBreakOffset() {
3434
return next_tie_break_offset.fetch_add(1);
3535
}
3636

37-
PostgresSecretStorage::PostgresSecretStorage(const string &name_p, DatabaseInstance &db_p,
38-
PostgresCatalog &postgres_catalog_p, SecretManager &secret_manager_p)
39-
: SecretStorage(name_p, GetNextTieBreakOffset()), db(db_p), secret_manager(secret_manager_p),
37+
PostgresSecretStorage::PostgresSecretStorage(const string &name_p, PostgresCatalog &postgres_catalog_p,
38+
SecretManager &secret_manager_p)
39+
: SecretStorage(name_p, GetNextTieBreakOffset()), secret_manager(secret_manager_p),
4040
attached_database_name(postgres_catalog_p.GetAttached().GetName()), secrets_table_name("duckdb_secrets") {
4141
persistent = true;
4242

src/storage/postgres_catalog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ void PostgresCatalog::Initialize(bool load_builtin) {
115115

116116
// Register the secret storage
117117
try {
118-
auto storage = make_uniq<PostgresSecretStorage>(storage_name, db_instance, *this, secret_manager);
118+
auto storage = make_uniq<PostgresSecretStorage>(storage_name, *this, secret_manager);
119119
secret_manager.LoadSecretStorage(std::move(storage));
120120
} catch (InvalidConfigurationException &) {
121121
// Storage already exists - this is fine, reuse the existing one

0 commit comments

Comments
 (0)