SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
simple refactoring
Chris Lu94a35f25f35e
diff --git a/weed/filer/postgres_store/postgres_native.go b/weed/filer/postgres_store/postgres_native.goindex 47631b016e..12b5015cf6 100644--- a/weed/filer/postgres_store/postgres_native.go+++ b/weed/filer/postgres_store/postgres_native.go@@ -94,17 +94,12 @@ func getDbConnection(conf PostgresConf) *sql.DB {panic(pingErr)}- var maxIdleConnections, maxOpenConnections int-+ maxIdleConnections, maxOpenConnections := default_maxIdleConnections, default_maxOpenConnectionsif conf.MaxIdleConnections != 0 {maxIdleConnections = conf.MaxIdleConnections- } else {- maxIdleConnections = default_maxIdleConnections}if conf.MaxOpenConnections != 0 {maxOpenConnections = conf.MaxOpenConnections- } else {- maxOpenConnections = default_maxOpenConnections}_db_connection.SetMaxIdleConns(maxIdleConnections)