summaryrefslogtreecommitdiff
path: root/src/os_win/os_open.c
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2015-04-08 14:38:49 -0400
committerMichael Cahill <michael.cahill@mongodb.com>2015-04-25 12:46:08 +1000
commit1a32cfeaf36c7d851ccbe2ec5244bf45f17092d8 (patch)
tree700b3427c3c31727e1579f5edb05ca7d26de6485 /src/os_win/os_open.c
parent4f3da019e893b18ec392025845dd5b839c820893 (diff)
downloadmongo-1a32cfeaf36c7d851ccbe2ec5244bf45f17092d8.tar.gz
Fix places where we were using the wrong link for traversing hash buckets.
Diffstat (limited to 'src/os_win/os_open.c')
-rw-r--r--src/os_win/os_open.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os_win/os_open.c b/src/os_win/os_open.c
index cfc8e319da0..74b74604836 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);
- SLIST_FOREACH(tfh, &conn->fhhash[bucket], l)
+ SLIST_FOREACH(tfh, &conn->fhhash[bucket], hashl)
if (strcmp(name, tfh->name) == 0) {
++tfh->ref;
*fhp = tfh;
@@ -160,7 +160,7 @@ setupfh:
*/
matched = 0;
__wt_spin_lock(session, &conn->fh_lock);
- SLIST_FOREACH(tfh, &conn->fhhash[bucket], l)
+ SLIST_FOREACH(tfh, &conn->fhhash[bucket], hashl)
if (strcmp(name, tfh->name) == 0) {
++tfh->ref;
*fhp = tfh;