]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tools/cephfs_mirror: fix lock declaratie/locking 43198/head
authorWillem Jan Withagen <wjw@digiware.nl>
Sat, 28 Aug 2021 15:40:11 +0000 (17:40 +0200)
committerVenky Shankar <vshankar@redhat.com>
Fri, 17 Sep 2021 09:42:40 +0000 (15:12 +0530)
commitf17e42c7c1da770b698032757e97077168eef49c
treeb4b4ead80bf5e4793e31075b65050156b80c2aa2
parent49c6e2bfff0cc785adcb7e5d1d9b721206506ed0
tools/cephfs_mirror: fix lock declaratie/locking

Clang complains:
```
/home/jenkins/workspace/ceph-master-compile/src/tools/cephfs_mirror/ClusterWatcher.cc:175:19: error: cannot use parentheses when declaring variable with deduced class template specialization type
  std::scoped_lock(m_lock);
                  ^
```

fixes: https://github.com/ceph/ceph/pull/42751
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
(cherry picked from commit 3f952b9c9b69a361441952b279a39b164881ce12)
src/tools/cephfs_mirror/ClusterWatcher.cc