]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rbd_replay/Replayer.cc
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / rbd_replay / Replayer.cc
index b159d8a51ff3b17f67dad2eedb9f94726ed2ee6f..11e84900d1a3984c5dde63fe3bb94981a8ed2dd9 100644 (file)
@@ -214,7 +214,7 @@ void Replayer::run(const std::string& replay_file) {
       m_rbd = new librbd::RBD();
       map<thread_id_t, Worker*> workers;
 
-      int fd = open(replay_file.c_str(), O_RDONLY);
+      int fd = open(replay_file.c_str(), O_RDONLY|O_BINARY);
       if (fd < 0) {
         std::cerr << "Failed to open " << replay_file << ": "
                   << cpp_strerror(errno) << std::endl;