]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
Paxos.cc: use empty() instead of size()
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 26 Feb 2013 10:13:45 +0000 (11:13 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 26 Feb 2013 10:13:45 +0000 (11:13 +0100)
commited83d4b9df514018b8063d87cc2f2c7c519dd6ca
tree3cf353c16206b0d51f42aa813d5cb49d236eba7e
parent14716fd24bb695975636bcce6afa51c563242bf4
Paxos.cc: use empty() instead of size()

Use empty() since it should be prefered as it has, following the
standard, a constant time complexity regardless of the containter
type. The same is not guaranteed for size().

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/mon/Paxos.cc