]> 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>
Fri, 6 Sep 2013 23:05:53 +0000 (16:05 -0700)
commit40dc489351383c2e35b91c3d4e76b633309716df
treee119c9b87b9f49680df6e2b1d15fd5bff4462568
parent4261eb5ec105b9c27605360910602dc367fd79f5
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>
(cherry picked from commit fe68b15a3d82349f8941f5b9f70fcbb5d4bc7f97)
src/osd/PGLog.h