mirror of
https://github.com/ceph/ceph
synced 2024-12-29 15:03:33 +00:00
rgw: set objv_tracker for metadata mutate
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
This commit is contained in:
parent
bcf3432f0a
commit
85bd4183c3
@ -800,6 +800,14 @@ int RGWMetadataManager::prepare_mutate(RGWRados *store,
|
||||
return STATUS_NO_APPLY;
|
||||
}
|
||||
|
||||
if (objv_tracker->write_version.tag.empty()) {
|
||||
if (objv_tracker->read_version.tag.empty()) {
|
||||
objv_tracker->generate_new_write_ver(store->ctx());
|
||||
} else {
|
||||
objv_tracker->write_version = objv_tracker->read_version;
|
||||
objv_tracker->write_version.ver++;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user