Skip to content

Commit 5d1255c

Browse files
committed
client: add function to check if file handle exists
It is named _ll_fh_exists meaning it is a helper func only to be used with low level APIs. Fixes: https://tracker.ceph.com/issues/64313 Signed-off-by: Dhairya Parmar <[email protected]>
1 parent 441dbb8 commit 5d1255c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/client/Client.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,9 @@ class Client : public Dispatcher, public md_config_obs_t {
10261026
return it->second;
10271027
}
10281028
int get_fd_inode(int fd, InodeRef *in);
1029+
bool _ll_fh_exists(Fh *f) {
1030+
return ll_unclosed_fh_set.count(f);
1031+
}
10291032

10301033
// helpers
10311034
void wake_up_session_caps(MetaSession *s, bool reconnect);

0 commit comments

Comments
 (0)