diff --git a/ceph/client/SyntheticClient.cc b/ceph/client/SyntheticClient.cc index 69f7a00043c..714b48825fa 100644 --- a/ceph/client/SyntheticClient.cc +++ b/ceph/client/SyntheticClient.cc @@ -389,7 +389,7 @@ int SyntheticClient::random_walk(int num_req) if (contents.empty()) op = MDS_OP_READDIR; else { - r = client->open( get_random_sub(), O_RDWR ); + r = client->open( get_random_sub(), O_RDONLY ); if (r > 0) { assert(open_files.count(r) == 0); open_files.insert(r);