Actions
Bug #50194
closedlibrgw: make rgw file handle versioned
% Done:
100%
Source:
Tags:
Backport:
octopus pacific quincy
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
kcephfs
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
The reason that we need this is that there could be the following scenario:
rgw_setattr sets the file attr;
rgw_write writes some new data, and encodes its attr to store into rados;
before the actual persistence of the file's attr bl, rgw_lookup loads the file's
previous attr and modifies the current file handle's metadata;
rgw_write's result persisted to rados;
rgw_setattr set the current file handle's metadata which is actually an old one to rados
In this case, the attr in rados would be out of date which means loss of data
Actions