]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: remove bad assert in get_object_context()
authorSage Weil <sage@newdream.net>
Fri, 7 May 2010 18:53:03 +0000 (11:53 -0700)
committerSage Weil <sage@newdream.net>
Fri, 7 May 2010 18:59:29 +0000 (11:59 -0700)
commite5ab4c81cf6b690774eca466dce05c7b82d19bbf
treea793d2ac0480c872b44d5aaf29cf9aff1832658f
parent316cd6935b6a2eeb041f83a4012a601a74905b45
osd: remove bad assert in get_object_context()

This has always been fishy, and it's original purpose isn't quite clear.
The '!obc->obs.ssc' is clearly the create case, but the head_exists check
is only the case if we are getting the context for a _head, which in
many cases we're not.  In parituclarly, it fails for a snapped object
where the head doesn't exist.  We _do_ have teh ssc (from the _snapdir
object) but there is no head.

Just remove the assert entirely.. it's not clear what it's really catching.
src/osd/ReplicatedPG.cc