Merge pull request #39353 from lxbsz/minor

client: use scoped_lock instead of unique_lock
This commit is contained in:
Venky Shankar 2021-02-09 10:43:10 +05:30 committed by GitHub
commit 9f039ceeda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {