File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -5582,6 +5582,13 @@ isc_db_handle& YAttachment::getHandle()
5582
5582
5583
5583
YAttachment::~YAttachment ()
5584
5584
{
5585
+ if (handle)
5586
+ {
5587
+ // Currently it may be possible after ping() disconnected from the next
5588
+ fb_assert (!next);
5589
+ removeHandle (&attachments, handle);
5590
+ }
5591
+
5585
5592
if (provider)
5586
5593
PluginManagerInterfacePtr ()->releasePlugin (provider);
5587
5594
}
@@ -6035,10 +6042,8 @@ void YAttachment::ping(CheckStatusWrapper* status)
6035
6042
if (!savedStatus.getError ())
6036
6043
savedStatus.save (status);
6037
6044
6038
- StatusVector temp (NULL );
6039
- CheckStatusWrapper tempCheckStatusWrapper (&temp);
6040
- entry.next ()->detach (&tempCheckStatusWrapper);
6041
- next = NULL ;
6045
+ entry.next ()->release ();
6046
+ next = nullptr ;
6042
6047
6043
6048
status_exception::raise (savedStatus.value ());
6044
6049
}
You can’t perform that action at this time.
0 commit comments