mirror of
https://github.com/ceph/ceph
synced 2025-02-20 17:37:29 +00:00
Merge pull request #39353 from lxbsz/minor
client: use scoped_lock instead of unique_lock
This commit is contained in:
commit
9f039ceeda
@ -10944,7 +10944,7 @@ int Client::get_snap_info(const char *path, const UserPerm &perms, SnapInfo *sna
|
||||
return -ENOTCONN;
|
||||
}
|
||||
|
||||
std::unique_lock locker(client_lock);
|
||||
std::scoped_lock lock(client_lock);
|
||||
InodeRef in;
|
||||
int r = Client::path_walk(path, &in, perms, true);
|
||||
if (r < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user