aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2007-09-05 13:56:32 +0000
committerdanielk1977 <danielk1977@noemail.net>2007-09-05 13:56:32 +0000
commited10afb4c0dfe1e08304638da27813594090d4d7 (patch)
tree23e84441a4d0c683d19ab90595ca9b2c8921b349 /src/os_unix.c
parentb6be675dcbf0a9895a5daefa21c86a6426e2b174 (diff)
downloadsqlite-ed10afb4c0dfe1e08304638da27813594090d4d7.tar.gz
sqlite-ed10afb4c0dfe1e08304638da27813594090d4d7.zip
Remove the unixFile.isOpen variable (no longer in use). (CVS 4401)
FossilOrigin-Name: 1786e9c881a67fbf8bd014d643590534c8c601dc
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 4cdde299a..498b11965 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -96,7 +96,6 @@ struct unixFile {
#endif /* SQLITE_ENABLE_LOCKING_STYLE */
int h; /* The file descriptor */
unsigned char locktype; /* The type of lock held on this fd */
- unsigned char isOpen; /* True if needs to be closed */
int dirfd; /* File descriptor for the directory */
#if SQLITE_THREADSAFE
pthread_t tid; /* The thread that "owns" this unixFile */
@@ -1434,7 +1433,6 @@ static int unixClose(sqlite3_file *id){
releaseOpenCnt(pFile->pOpen);
leaveMutex();
- pFile->isOpen = 0;
OSTRACE2("CLOSE %-3d\n", pFile->h);
OpenCounter(-1);
memset(pFile, 0, sizeof(unixFile));
@@ -1755,7 +1753,6 @@ static int afpUnixClose(sqlite3_file *id) {
if( pFile->dirfd>=0 ) close(pFile->dirfd);
pFile->dirfd = -1;
close(pFile->h);
- pFile->isOpen = 0;
OSTRACE2("CLOSE %-3d\n", pFile->h);
OpenCounter(-1);
return SQLITE_OK;
@@ -1849,7 +1846,6 @@ static int flockUnixClose(sqlite3_file *pId) {
close(pFile->h);
leaveMutex();
- pFile->isOpen = 0;
OSTRACE2("CLOSE %-3d\n", pFile->h);
OpenCounter(-1);
return SQLITE_OK;
@@ -1966,7 +1962,6 @@ static int dotlockUnixClose(sqlite3_file *id) {
close(pFile->h);
leaveMutex();
- pFile->isOpen = 0;
OSTRACE2("CLOSE %-3d\n", pFile->h);
OpenCounter(-1);
return SQLITE_OK;
@@ -2006,7 +2001,6 @@ static int nolockUnixClose(sqlite3_file *id) {
close(pFile->h);
leaveMutex();
- pFile->isOpen = 0;
OSTRACE2("CLOSE %-3d\n", pFile->h);
OpenCounter(-1);
return SQLITE_OK;