A few more cosmetic fixes.
// Dereference the parked packet. This releases our stake in it.
parking_lot->dereference(query4);
return;
- }
+ }
} catch (...) {
// Make sure we dereference.
parking_lot->dereference(query4);
// Dereference the parked packet. This releases our stake in it.
parking_lot->dereference(query6);
return;
- }
+ }
} catch (...) {
// Make sure we dereference.
parking_lot->dereference(query6);
// Park the packet.
HooksManager::park("leases6_committed", query6, []{});
+ // Run the callout again.
ASSERT_NO_THROW(ha_impl.leases6Committed(*callout_handle));
// This time the lease update should be generated and the status should
StringPtr parked_object(new std::string("foo"));
// Verify that an object that hasn't been parked, cannot be
- // dererferenced.
+ // dereferenced.
ASSERT_THROW(parking_lot_handle->dereference(parked_object),
InvalidOperation);