diff options
| author | LazyDBA247-Anyvision <yonin@anyvision.co> | 2021-03-30 01:36:02 +0300 |
|---|---|---|
| committer | LazyDBA247-Anyvision <yonin@anyvision.co> | 2021-03-30 01:36:02 +0300 |
| commit | 7f44d953b56dc74281b6de3dcac184d97c9715f1 (patch) | |
| tree | ac12be65d8c7344a028b496d3757879335d71763 /weed/filer/postgres2/postgres2_store.go | |
| parent | 4c51e6a6605ce4592957c047c73c345a0a12bae3 (diff) | |
| download | seaweedfs-7f44d953b56dc74281b6de3dcac184d97c9715f1.tar.xz seaweedfs-7f44d953b56dc74281b6de3dcac184d97c9715f1.zip | |
fix GetBool
Diffstat (limited to 'weed/filer/postgres2/postgres2_store.go')
| -rw-r--r-- | weed/filer/postgres2/postgres2_store.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filer/postgres2/postgres2_store.go b/weed/filer/postgres2/postgres2_store.go index b5947bb96..01fc4a869 100644 --- a/weed/filer/postgres2/postgres2_store.go +++ b/weed/filer/postgres2/postgres2_store.go @@ -33,7 +33,7 @@ func (store *PostgresStore2) Initialize(configuration util.Configuration, prefix return store.initialize( configuration.GetString(prefix+"createTable"), configuration.GetString(prefix+"upsertQuery"), - configuration.GetString(prefix+"enableUpsert"), + configuration.GetBool(prefix+"enableUpsert"), configuration.GetString(prefix+"username"), configuration.GetString(prefix+"password"), configuration.GetString(prefix+"hostname"), @@ -47,7 +47,7 @@ func (store *PostgresStore2) Initialize(configuration util.Configuration, prefix ) } -func (store *PostgresStore2) initialize(createTable, upsertQuery, enableUpsert, user, password, hostname string, port int, database, schema, sslmode string, maxIdle, maxOpen, maxLifetimeSeconds int) (err error) { +func (store *PostgresStore2) initialize(createTable, upsertQuery string, enableUpsert bool, user, password, hostname string, port int, database, schema, sslmode string, maxIdle, maxOpen, maxLifetimeSeconds int) (err error) { store.SupportBucketTable = true if !enableUpsert { |
