Skip to content
Snippets Groups Projects
Commit aa56a1c3 authored by Eric Cano's avatar Eric Cano
Browse files

Fixed racy implementation of BackendRados::lock{Exclusive|Shared}()

As rados re-creates an object when trying to lock it, we tested for presence before locking.
This is racy as object could be deleted in the mean time.
Instead, we now lock blindly and delete the object if we find it having a zero-size.
As we own the lock, this is safe.

This problem led to issues in garbage colector, where agent gets polled while it could disappear.
parent d88a0145
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment