summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@mongodb.com>2015-08-14 22:46:38 +1000
committerMichael Cahill <michael.cahill@mongodb.com>2015-08-14 22:46:38 +1000
commit009216b9ee84635d622374dd6a418514f0730a32 (patch)
tree986afbf37155bd3026a2f0d259a5ca46267d62fa
parentd71de5fff7596af4c991654c716b6e40ca86e630 (diff)
downloadmongo-009216b9ee84635d622374dd6a418514f0730a32.tar.gz
WT-1481 Fix the count of open files.
-rw-r--r--src/os_posix/os_open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_posix/os_open.c b/src/os_posix/os_open.c
index c636a9f9b32..b3dc8f1db27 100644
--- a/src/os_posix/os_open.c
+++ b/src/os_posix/os_open.c
@@ -177,7 +177,7 @@ setupfh:
}
if (!matched) {
WT_CONN_FILE_INSERT(conn, fh, bucket);
- (void)WT_ATOMIC_SUB4(conn->open_file_count, 1);
+ (void)WT_ATOMIC_ADD4(conn->open_file_count, 1);
*fhp = fh;
}