1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Set the winShm.id member when it is going to be traced.

FossilOrigin-Name: fa7916b67efbc44e6f115bb0d32d8b92fd0acf3c
This commit is contained in:
mistachkin
2015-03-31 19:17:44 +00:00
parent d25675f897
commit 98f1c4086d
3 changed files with 9 additions and 9 deletions

View File

@@ -3415,7 +3415,7 @@ struct winShmNode {
int nRef; /* Number of winShm objects pointing to this */
winShm *pFirst; /* All winShm objects pointing to this */
winShmNode *pNext; /* Next in list of all winShmNode objects */
#ifdef SQLITE_DEBUG
#if defined(SQLITE_DEBUG) || defined(SQLITE_WIN32_HAS_OS_TRACE)
u8 nextShmId; /* Next available winShm.id value */
#endif
};
@@ -3637,7 +3637,7 @@ static int winOpenSharedMemory(winFile *pDbFd){
/* Make the new connection a child of the winShmNode */
p->pShmNode = pShmNode;
#ifdef SQLITE_DEBUG
#if defined(SQLITE_DEBUG) || defined(SQLITE_WIN32_HAS_OS_TRACE)
p->id = pShmNode->nextShmId++;
#endif
pShmNode->nRef++;