replication: Pass metadata timestamps in CopyObject call (#18647)

Regression from #18285. CopyObject options were inheriting source MTime
for metadata timestamps if unspecified, removing this prevented metadata
updates from being applied on target.
This commit is contained in:
Poorna
2023-12-13 15:28:55 -08:00
committed by GitHub
parent e79b289325
commit 3781a0f9ad
2 changed files with 23 additions and 1 deletions

View File

@@ -253,7 +253,11 @@ if [ $? -ne 0 ]; then
exit_1
fi
sleep 5
val=$(./mc tag list minio1/newbucket/README.md --version-id "${vID}" --json | jq -r .tagset.key)
if [ "${val}" != "val" ]; then
echo "expected bucket tag to have replicated, exiting..."
exit_1
fi
./mc tag remove --version-id "${vID}" minio2/newbucket/README.md
if [ $? -ne 0 ]; then
echo "expecting tag removal to be successful. exiting.."