diff options
author | Keith Bostic <keith@wiredtiger.com> | 2015-04-08 14:38:49 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2015-04-08 14:38:49 -0400 |
commit | 1298fd6db4f0c1d6133b3e547b2e2db51ec4a708 (patch) | |
tree | 305114cbce5ebfe8fa25394b1c0f6bf7e1a73513 | |
parent | 9665c0dc4d512f0e2748229d01cf0700dcc4898f (diff) | |
download | mongo-1298fd6db4f0c1d6133b3e547b2e2db51ec4a708.tar.gz |
Fix places where we were using the wrong link for traversing hash buckets.
-rw-r--r-- | src/conn/conn_dhandle.c | 2 | ||||
-rw-r--r-- | src/os_posix/os_open.c | 4 | ||||
-rw-r--r-- | src/os_posix/os_remove.c | 2 | ||||
-rw-r--r-- | src/os_win/os_open.c | 4 | ||||
-rw-r--r-- | src/os_win/os_remove.c | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/src/conn/conn_dhandle.c b/src/conn/conn_dhandle.c index 63180d64019..385280116a6 100644 --- a/src/conn/conn_dhandle.c +++ b/src/conn/conn_dhandle.c @@ -649,7 +649,7 @@ __wt_conn_dhandle_close_all( WT_ASSERT(session, session->dhandle == NULL); bucket = __wt_hash_city64(name, strlen(name)) % WT_HASH_ARRAY_SIZE; - SLIST_FOREACH(dhandle, &conn->dhhash[bucket], l) { + SLIST_FOREACH(dhandle, &conn->dhhash[bucket], hashl) { if (strcmp(dhandle->name, name) != 0) continue; diff --git a/src/os_posix/os_open.c b/src/os_posix/os_open.c index 33b07ed6a49..dd3ee7f4e11 100644 --- a/src/os_posix/os_open.c +++ b/src/os_posix/os_open.c @@ -60,7 +60,7 @@ __wt_open(WT_SESSION_IMPL *session, hash = __wt_hash_city64(name, strlen(name)); bucket = hash % WT_HASH_ARRAY_SIZE; __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; @@ -174,7 +174,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; diff --git a/src/os_posix/os_remove.c b/src/os_posix/os_remove.c index d1f658b7ae1..3fc692d8755 100644 --- a/src/os_posix/os_remove.c +++ b/src/os_posix/os_remove.c @@ -29,7 +29,7 @@ __remove_file_check(WT_SESSION_IMPL *session, const char *name) * level should have closed it before removing. */ __wt_spin_lock(session, &conn->fh_lock); - SLIST_FOREACH(fh, &conn->fhhash[bucket], l) + SLIST_FOREACH(fh, &conn->fhhash[bucket], hashl) if (strcmp(name, fh->name) == 0) break; __wt_spin_unlock(session, &conn->fh_lock); diff --git a/src/os_win/os_open.c b/src/os_win/os_open.c index 4039bcb21e5..a27bc565c18 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; diff --git a/src/os_win/os_remove.c b/src/os_win/os_remove.c index 45b4d5ce6b0..0c6396c775f 100644 --- a/src/os_win/os_remove.c +++ b/src/os_win/os_remove.c @@ -29,7 +29,7 @@ __remove_file_check(WT_SESSION_IMPL *session, const char *name) * level should have closed it before removing. */ __wt_spin_lock(session, &conn->fh_lock); - SLIST_FOREACH(fh, &conn->fhhash[bucket], l) + SLIST_FOREACH(fh, &conn->fhhash[bucket], hashl) if (strcmp(name, fh->name) == 0) break; __wt_spin_unlock(session, &conn->fh_lock); |