1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Fix a bug in the mutex-testing logic introduced by check-in (5389). (CVS 5390)

FossilOrigin-Name: 8fc462b6b7afe390463ea7b010fd3230d9acc358
This commit is contained in:
drh
2008-07-10 20:41:49 +00:00
parent 8a42cbd3f0
commit 19dd29fcf5
3 changed files with 9 additions and 10 deletions

View File

@@ -10,7 +10,7 @@
**
*************************************************************************
**
** $Id: test_mutex.c,v 1.8 2008/07/10 18:13:42 drh Exp $
** $Id: test_mutex.c,v 1.9 2008/07/10 20:41:50 drh Exp $
*/
#include "tcl.h"
@@ -18,7 +18,6 @@
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include "mutex.h"
/* defined in test1.c */
const char *sqlite3TestErrorName(int);
@@ -121,7 +120,7 @@ static void counterMutexEnter(sqlite3_mutex *p){
static int counterMutexTry(sqlite3_mutex *p){
assert( g.isInit );
g.aCounter[p->eType]++;
if( g.disableTry ) return 0;
if( g.disableTry ) return SQLITE_BUSY;
return g.m.xMutexTry(p->pReal);
}