[server] Minor fixes (#2671)

## Description

## Tests
This commit is contained in:
Neeraj Gupta
2024-08-12 16:40:26 +05:30
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -21,7 +21,7 @@ func (c *Controller) StartReplication() error {
if workerURL == "" {
log.Infof("replication.worker-url was not defined, file data will downloaded directly during replication")
} else {
log.Infof("Worker URL to download objects for replication v3 is: %s", workerURL)
log.Infof("Worker URL to download objects for file-data replication is: %s", workerURL)
}
c.workerURL = workerURL

View File

@@ -42,6 +42,7 @@ func (r *Repository) InsertOrUpdate(ctx context.Context, data filedata.Row) erro
WHERE elem IS NOT NULL AND elem != EXCLUDED.latest_bucket
),
replicated_buckets = ARRAY[]::s3region[],
pending_sync = true,
latest_bucket = EXCLUDED.latest_bucket,
updated_at = now_utc_micro_seconds()
WHERE file_data.is_deleted = false`