From: Danny Al-Gaaf Date: Tue, 2 Sep 2014 12:15:21 +0000 (+0200) Subject: rbd_replay/Replayer.cc: pass const string parameter by reference X-Git-Tag: v0.86~135^2~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=15df8ac4f3728f48d1d69550ed24ccb1d93477af;p=ceph.git rbd_replay/Replayer.cc: pass const string parameter by reference Signed-off-by: Danny Al-Gaaf --- diff --git a/src/rbd_replay/Replayer.cc b/src/rbd_replay/Replayer.cc index 275017c1fa9..ffd04a919db 100644 --- a/src/rbd_replay/Replayer.cc +++ b/src/rbd_replay/Replayer.cc @@ -148,7 +148,7 @@ Replayer::action_tracker_d &Replayer::tracker_for(action_id_t id) { return m_action_trackers[id % m_num_action_trackers]; } -void Replayer::run(const std::string replay_file) { +void Replayer::run(const std::string& replay_file) { { librados::Rados rados; rados.init(NULL); diff --git a/src/rbd_replay/Replayer.hpp b/src/rbd_replay/Replayer.hpp index 53a838d3769..56b4fd7f946 100644 --- a/src/rbd_replay/Replayer.hpp +++ b/src/rbd_replay/Replayer.hpp @@ -77,7 +77,7 @@ public: ~Replayer(); - void run(const std::string replay_file); + void run(const std::string &replay_file); librbd::RBD* get_rbd() { return m_rbd;