Bug fix
This commit is contained in:
+12
-1
@@ -2233,9 +2233,20 @@ int toasty_process_events(ToastyFS *toasty, void **contexts, struct pollfd *poll
|
|||||||
|
|
||||||
RequestQueue *reqs = NULL;
|
RequestQueue *reqs = NULL;
|
||||||
|
|
||||||
int tag = tcp_get_tag(&toasty->tcp, conn_idx);
|
int tag = events[i].tag;
|
||||||
CLIENT_TRACE("TCP EVENT: DISCONNECT (tag=%d)", tag);
|
CLIENT_TRACE("TCP EVENT: DISCONNECT (tag=%d)", tag);
|
||||||
|
|
||||||
|
#ifdef MAIN_SIMULATION
|
||||||
|
if (toasty->metadata_server.used) {
|
||||||
|
int conn_idx = tcp_index_from_tag(&toasty->tcp, TAG_METADATA_SERVER);
|
||||||
|
if (tag == TAG_METADATA_SERVER) {
|
||||||
|
assert(conn_idx == -1);
|
||||||
|
} else {
|
||||||
|
assert(conn_idx > -1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (tag == TAG_METADATA_SERVER) {
|
if (tag == TAG_METADATA_SERVER) {
|
||||||
reqs = &toasty->metadata_server.reqs;
|
reqs = &toasty->metadata_server.reqs;
|
||||||
toasty->metadata_server.used = false;
|
toasty->metadata_server.used = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user