diff options
Diffstat (limited to 'src/vdbeaux.c')
-rw-r--r-- | src/vdbeaux.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vdbeaux.c b/src/vdbeaux.c index 9aeb50250..155a1ae89 100644 --- a/src/vdbeaux.c +++ b/src/vdbeaux.c @@ -950,6 +950,11 @@ static char *displayP4(Op *pOp, char *zTemp, int nTemp){ /* ** Declare to the Vdbe that the BTree object at db->aDb[i] is used. +** +** The prepared statement has to know in advance which Btree objects +** will be used so that it can acquire mutexes on them all in sorted +** order (via sqlite3VdbeMutexArrayEnter(). Mutexes are acquired +** in order (and released in reverse order) to avoid deadlocks. */ void sqlite3VdbeUsesBtree(Vdbe *p, int i){ int mask; |