Skip to content

Commit d80c4f8

Browse files
committed
Remove unnecessary mutex lock
Unsure if this is _should_ be removed, but we will remove for the time being. The sqlite docs make a call out that this return value is meaningless if another thread is making changes on the DB.
1 parent 21845bd commit d80c4f8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

c_src/sqlite3_nif.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,7 @@ exqlite_changes(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
363363
return make_error_tuple(env, am_connection_closed);
364364
}
365365

366-
enif_mutex_lock(conn->mutex);
367366
int changes = sqlite3_changes(conn->db);
368-
enif_mutex_unlock(conn->mutex);
369367
return make_ok_tuple(env, enif_make_int(env, changes));
370368
}
371369

0 commit comments

Comments
 (0)