]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: fix read of format_version out of leveldb
authorSage Weil <sage@inktank.com>
Wed, 12 Jun 2013 18:23:23 +0000 (11:23 -0700)
committerSage Weil <sage@inktank.com>
Thu, 13 Jun 2013 00:13:14 +0000 (17:13 -0700)
commit862148d5fbd4bb94e49faef3a01aaf062eec7e84
treeb355d8a3a04a0637d184ba88eaa71271b80a3363
parent35ac835fc8bab430ed2bb189914edc8fc6a63c82
mon: fix read of format_version out of leveldb

The get_version(string, string) is the wrong method; it combines the two
args into a key that is nested inside prefix (so it's prefix/a/b), but we
want perfix/format_version.  Add a method to grab an int for this
particular combo and use that.

This fixes an infinite loop when we actually trigger this code.

Bug introduced by f43c974571beac0c8e54fa699bfa96a1befaf56c.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Joao Eduardo Luis <joao.luis@inktank.com>
src/mon/AuthMonitor.cc
src/mon/PaxosService.h