diff --git a/src/client/Client.cc b/src/client/Client.cc index 7e9332ea487..df411f2fefa 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -360,6 +360,7 @@ void Client::tear_down_cache() inodeno_t Client::get_root_ino() { + Mutex::Locker l(client_lock); if (use_faked_inos()) return root->faked_ino; else @@ -368,6 +369,7 @@ inodeno_t Client::get_root_ino() Inode *Client::get_root() { + Mutex::Locker l(client_lock); root->ll_get(); return root; }