]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
PGLog: move the log size check after the early return
authorSamuel Just <sam.just@inktank.com>
Tue, 27 Aug 2013 06:19:45 +0000 (23:19 -0700)
committerSamuel Just <sam.just@inktank.com>
Wed, 28 Aug 2013 01:44:45 +0000 (18:44 -0700)
commitfe68b15a3d82349f8941f5b9f70fcbb5d4bc7f97
tree065315fe97e7093a3998afc399f7cde675931432
parent7cc2eb246df14925ca27b8dee19b32e0bdb505a8
PGLog: move the log size check after the early return

There really are stl implementations (like the one on my ubuntu 12.04
machine) which have a list::size() which is linear in the size of the
list.  That assert, therefore, is quite expensive!

Fixes: #6040
Backport: Dumpling
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/PGLog.h