Now that we acquire and demote an exclusive lock during loading without
blocking, a seperate loading_mutex shouldn't be necessary.
Signed-off-by: Samuel Just <sjust@redhat.com>
using watch_key_t = std::pair<uint64_t, entity_name_t>;
std::map<watch_key_t, seastar::shared_ptr<crimson::osd::Watch>> watchers;
- // obc loading is a concurrent phase. In case this obc is being loaded,
- // make other users of this obc to await for the loading to complete.
- seastar::shared_mutex loading_mutex;
-
ObjectContext(hobject_t hoid) : lock(hoid.oid.name),
obs(std::move(hoid)) {}