diff options
author | mistachkin <mistachkin@noemail.net> | 2015-03-31 19:17:44 +0000 |
---|---|---|
committer | mistachkin <mistachkin@noemail.net> | 2015-03-31 19:17:44 +0000 |
commit | 98f1c4086df052634215cf5f071be8d33cc34e5f (patch) | |
tree | 6e98e0a0a643d349f0814ec556aabdafaf1d2a81 /src | |
parent | d25675f8978e9d8dc662421f17a0405fcddde3f9 (diff) | |
download | sqlite-98f1c4086df052634215cf5f071be8d33cc34e5f.tar.gz sqlite-98f1c4086df052634215cf5f071be8d33cc34e5f.zip |
Set the winShm.id member when it is going to be traced.
FossilOrigin-Name: fa7916b67efbc44e6f115bb0d32d8b92fd0acf3c
Diffstat (limited to 'src')
-rw-r--r-- | src/os_win.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os_win.c b/src/os_win.c index acb06c69e..abfa454bd 100644 --- a/src/os_win.c +++ b/src/os_win.c @@ -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++; |