Remove unnecessary locking

The lock didn't really protect anything but since it was not explicitly
initialized, it caused a hang.
This commit is contained in:
Markus Mäkelä
2018-05-22 15:22:29 +03:00
parent 3fce61a615
commit 6159f863ce
3 changed files with 0 additions and 8 deletions

View File

@ -749,11 +749,9 @@ static void closeSession(MXS_ROUTER *instance, MXS_ROUTER_SESSION *router_sessio
AvroSession *client = (AvroSession *) router_session;
spinlock_acquire(&client->catch_lock);
spinlock_acquire(&client->file_lock);
client->state = AVRO_CLIENT_UNREGISTERED;
spinlock_release(&client->file_lock);
spinlock_release(&client->catch_lock);
}