diff options
author | Josh Durgin <josh.durgin@dreamhost.com> | 2012-03-07 15:12:03 -0800 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2012-03-07 16:05:14 -0800 |
commit | b0c9d58c184c9fc6b85a6561d05f9fecde1f853e (patch) | |
tree | 90c596d99f605259fb05a2adbda1e0079b1057fd /src/rbd.cc | |
parent | 65d170a84882636473918bce737b8d9cab211762 (diff) | |
download | ceph-b0c9d58c184c9fc6b85a6561d05f9fecde1f853e.tar.gz |
rbd: pass all mon addrs when mapping devices
Previously this repeated the address of the first monitor.
Fixes: #2152
Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
Reviewed-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'src/rbd.cc')
-rw-r--r-- | src/rbd.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rbd.cc b/src/rbd.cc index 3f86de6357f..9fffbdf4528 100644 --- a/src/rbd.cc +++ b/src/rbd.cc @@ -598,7 +598,7 @@ static int do_kernel_add(const char *poolname, const char *imgname, map<string, entity_addr_t>::const_iterator it = monmap.mon_addr.begin(); ostringstream oss; - for (size_t i = 0; i < monmap.mon_addr.size(); ++i) { + for (size_t i = 0; i < monmap.mon_addr.size(); ++i, ++it) { oss << it->second.addr; if (i + 1 < monmap.mon_addr.size()) oss << ","; |