mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
[server] doc
This commit is contained in:
parent
b688706935
commit
d494bb8d38
@ -255,8 +255,9 @@ func (c *Controller) getS3FileMetadataParallel(ctx *gin.Context, dbRows []fileDa
|
||||
|
||||
func (c *Controller) fetchS3FileMetadata(ctx context.Context, row fileData.Row, ctxLogger *log.Entry) (*fileData.S3FileMetadata, error) {
|
||||
dc := row.LatestBucket
|
||||
// :todo:neeraj make it configurable
|
||||
// treat b5 as preferred bucket for reading
|
||||
// :todo:neeraj make it configurable to
|
||||
// specify preferred dc to read from
|
||||
// and fallback logic to read from different bucket when we fail to read from preferred dc
|
||||
if dc == "b6" {
|
||||
if array.StringInList("b5", row.ReplicatedBuckets) {
|
||||
dc = "b5"
|
||||
|
Loading…
x
Reference in New Issue
Block a user