op.c:opslab_force_free: Make paranoid code reflect reality
authorFather Chrysostomos <sprout@cpan.org>
Mon, 5 Nov 2012 02:21:34 +0000 (18:21 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Mon, 5 Nov 2012 06:45:35 +0000 (22:45 -0800)
commit3bf28c7efbcf1a4748684c5e67060fc0deaa9427
tree0a63a16ff50eb0f3c31ecf11bf06d037ba84a898
parentee5ee8539c7146494698baa407f2b0ee47da8439
op.c:opslab_force_free: Make paranoid code reflect reality

When opslab_force_free is called, the CV still has a reference count
on the slab.  In fact, we don’t even bother lowering it if all goes
well, but simply free the slab with the reference count set to 1.
So the paranoid code that increments the reference count before free-
ing an op is not necessary.  Also, the shortcut out of the loop
was never triggered, as it was checking for a reference count of 0,
rather than 1.
op.c