Repository navigation
rgw: fix data corruption when race condition - #4752
Conversation
|
hi, @yehudasa,here is my logic: |
|
@wuxingyi oh, I think I see where the issue is. The problem is that we remove the 'tail' after the 'head' (the object in the 'multipart' namespace), and the head is the gatekeeper. I think that an easier fix would be to first remove the tails, and only then the heads. What do you think? |
|
@yehudasa ,I tried simply by using reverse iterator to delete the objects(on giant-0.87), but I found sometimes the object with "mutipart" namespace is not necessarily the first object of the array, so I did more work to make sure the "multipart" object was deleted last. |
We should delete the object in the multipart namespace lastly to prevent a previous upload wrongly deleting objects belong to the following upload. Fixes: #11749 Signed-off-by: wuxingyi <[email protected]>
|
@yehudasa , could you please review it again? thanks :) |
rgw: fix data corruption when race condition Reviewed-by: Yehuda Sadeh <[email protected]>
We should delete the object in the multipart namespace lastly to prevent a previous upload
wrongly deleting objects belong to the following upload.
Fixes: #11749