diff options
author | Keith Bostic <keith@wiredtiger.com> | 2015-02-09 16:53:02 -0500 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2015-02-09 16:53:02 -0500 |
commit | c54edc1c2849c483c6532e511bf34bdb5d5fb038 (patch) | |
tree | 7cd2b2c9954d03dae7a20cc723e72d1ad4d8baef /src/os_win/os_open.c | |
parent | 027a0d4297646a07a273923a0a23a7b389a79137 (diff) | |
download | mongo-c54edc1c2849c483c6532e511bf34bdb5d5fb038.tar.gz |
Switch the block and file-handle from TAILQ structures to SLIST
structures (SLIST structures are simpler and require less memory,
and the TAILQ's additional fucntionality isn't needed). Reference
Diffstat (limited to 'src/os_win/os_open.c')
-rw-r--r-- | src/os_win/os_open.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os_win/os_open.c b/src/os_win/os_open.c index aab6359997e..f146c732e85 100644 --- a/src/os_win/os_open.c +++ b/src/os_win/os_open.c @@ -39,7 +39,7 @@ __wt_open(WT_SESSION_IMPL *session, /* Increment the reference count if we already have the file open. */ matched = 0; __wt_spin_lock(session, &conn->fh_lock); - TAILQ_FOREACH(tfh, &conn->fhhash[bucket], q) + SLIST_FOREACH(tfh, &conn->fhhash[bucket], l) if (strcmp(name, tfh->name) == 0) { ++tfh->ref; *fhp = tfh; @@ -160,7 +160,7 @@ setupfh: */ matched = 0; __wt_spin_lock(session, &conn->fh_lock); - TAILQ_FOREACH(tfh, &conn->fhhash[bucket], q) + SLIST_FOREACH(tfh, &conn->fhhash[bucket], l) if (strcmp(name, tfh->name) == 0) { ++tfh->ref; *fhp = tfh; |