mysql_selector: reset mysql_lock to zero after destroying the lock.
authorAndre Noll <maan@systemlinux.org>
Sat, 7 Jul 2007 18:07:20 +0000 (20:07 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 7 Jul 2007 18:07:20 +0000 (20:07 +0200)
mysql_selector.c

index dedc96c..07cbfc6 100644 (file)
@@ -2270,6 +2270,7 @@ static void shutdown_connection(void)
                ret = mutex_destroy(mysql_lock);
                if (ret < 0)
                        PARA_ERROR_LOG("%s\n", PARA_STRERROR(-ret));
+               mysql_lock = 0;
        }
 }