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:
Greg Farnum 2011-06-27 12:07:36 -07:00
parent 92b0e8e8e4
commit 19614bb868

View File

@ -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);