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
go fmt
Chris Lu8e404a1433fe
diff --git a/weed/command/volume.go b/weed/command/volume.goindex 8014feaa6e..9df500178d 100644--- a/weed/command/volume.go+++ b/weed/command/volume.go@@ -239,7 +239,7 @@ func (v VolumeServerOptions) startVolumeServer(volumeFolders, maxVolumeCounts, v*v.fixJpgOrientation, *v.readRedirect,*v.compactionMBPerSecond,*v.fileSizeLimitMB,- int64(*v.concurrentUploadLimitMB) * 1024 * 1024,+ int64(*v.concurrentUploadLimitMB)*1024*1024,)// starting grpc servergrpcS := v.startGrpcService(volumeServer)diff --git a/weed/filer/mysql/mysql_store.go b/weed/filer/mysql/mysql_store.goindex 423b01392f..fbaa4d5f9a 100644--- a/weed/filer/mysql/mysql_store.go+++ b/weed/filer/mysql/mysql_store.go@@ -49,7 +49,7 @@ func (store *MysqlStore) initialize(upsertQuery string, enableUpsert bool, user,store.SupportBucketTable = falseif !enableUpsert {- upsertQuery = ""+ upsertQuery = ""}store.SqlGenerator = &SqlGenMysql{CreateTableSqlTemplate: "",diff --git a/weed/filer/mysql2/mysql2_store.go b/weed/filer/mysql2/mysql2_store.goindex 071352111a..a1f54455a7 100644--- a/weed/filer/mysql2/mysql2_store.go+++ b/weed/filer/mysql2/mysql2_store.go@@ -51,7 +51,7 @@ func (store *MysqlStore2) initialize(createTable, upsertQuery string, enableUpsestore.SupportBucketTable = trueif !enableUpsert {- upsertQuery = ""+ upsertQuery = ""}store.SqlGenerator = &mysql.SqlGenMysql{CreateTableSqlTemplate: createTable,diff --git a/weed/filer/postgres/postgres_store.go b/weed/filer/postgres/postgres_store.goindex 21b79d1fe0..a1e16a92ae 100644--- a/weed/filer/postgres/postgres_store.go+++ b/weed/filer/postgres/postgres_store.go@@ -48,7 +48,7 @@ func (store *PostgresStore) initialize(upsertQuery string, enableUpsert bool, usstore.SupportBucketTable = falseif !enableUpsert {- upsertQuery = ""+ upsertQuery = ""}store.SqlGenerator = &SqlGenPostgres{CreateTableSqlTemplate: "",diff --git a/weed/filer/postgres2/postgres2_store.go b/weed/filer/postgres2/postgres2_store.goindex 01fc4a869c..0f573d8d0b 100644--- a/weed/filer/postgres2/postgres2_store.go+++ b/weed/filer/postgres2/postgres2_store.go@@ -51,7 +51,7 @@ func (store *PostgresStore2) initialize(createTable, upsertQuery string, enableUstore.SupportBucketTable = trueif !enableUpsert {- upsertQuery = ""+ upsertQuery = ""}store.SqlGenerator = &postgres.SqlGenPostgres{CreateTableSqlTemplate: createTable,diff --git a/weed/server/filer_server_handlers_write_autochunk.go b/weed/server/filer_server_handlers_write_autochunk.goindex 2005da7405..2808042c7d 100644--- a/weed/server/filer_server_handlers_write_autochunk.go+++ b/weed/server/filer_server_handlers_write_autochunk.go@@ -55,7 +55,7 @@ func (fs *FilerServer) autoChunk(ctx context.Context, w http.ResponseWriter, r *if err != nil {if strings.HasPrefix(err.Error(), "read input:") {writeJsonError(w, r, 499, err)- }else if strings.HasSuffix(err.Error(), "is a file") {+ } else if strings.HasSuffix(err.Error(), "is a file") {writeJsonError(w, r, http.StatusConflict, err)} else {writeJsonError(w, r, http.StatusInternalServerError, err)diff --git a/weed/storage/needle/needle_read_write.go b/weed/storage/needle/needle_read_write.goindex 2d74206392..16c2fd06bb 100644--- a/weed/storage/needle/needle_read_write.go+++ b/weed/storage/needle/needle_read_write.go@@ -173,7 +173,7 @@ func WriteNeedleBlob(w backend.BackendStorageFile, dataSlice []byte, size Size,if version == Version3 {tsOffset := NeedleHeaderSize + size + NeedleChecksumSize- util.Uint64toBytes(dataSlice[tsOffset : tsOffset+TimestampSize], appendAtNs)+ util.Uint64toBytes(dataSlice[tsOffset:tsOffset+TimestampSize], appendAtNs)}if err == nil {