From 1100403ce617f32c3ec30e3870c5770a8ade23ae Mon Sep 17 00:00:00 2001 From: Xiubo Li Date: Mon, 8 Feb 2021 19:02:17 +0800 Subject: [PATCH] client: use scoped_lock instead of unique_lock Signed-off-by: Xiubo Li --- src/client/Client.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/Client.cc b/src/client/Client.cc index 0695ea2400f..794d08ca2d5 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -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) { -- 2.39.5