mirror of
https://github.com/ceph/ceph
synced 2025-02-23 02:57:21 +00:00
testceph: actually call closedir on opened directory.
Otherwise testceph hangs because it's still got things open! Fixes #1228 Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
This commit is contained in:
parent
92b0e8e8e4
commit
19614bb868
@ -269,12 +269,12 @@ int main(int argc, const char **argv)
|
||||
cout << "ceph_telldir: failed" << std::endl;
|
||||
}
|
||||
|
||||
//ret = ceph_closedir(cmount,readdir_test_dir);
|
||||
//if (ret == 0) {
|
||||
// cerr << "ceph_closedir success" << std::endl;
|
||||
//} else {
|
||||
// cerr << "ceph_closedir error: " << cpp_strerror(ret) << std::endl;
|
||||
//}
|
||||
ret = ceph_closedir(cmount,readdir_test_dir);
|
||||
if (ret == 0) {
|
||||
cerr << "ceph_closedir success" << std::endl;
|
||||
} else {
|
||||
cerr << "ceph_closedir error: " << cpp_strerror(ret) << std::endl;
|
||||
}
|
||||
|
||||
ceph_shutdown(cmount);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user