summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSusan LoVerso <sue@wiredtiger.com>2014-02-26 10:31:55 -0500
committerSusan LoVerso <sue@wiredtiger.com>2014-02-26 10:31:55 -0500
commit88e8a5eed0f77cbbd99e1819e39c820627841a1b (patch)
tree19b16c6549ebd573470b39a38ad6f902077a1cd1 /src
parent6565f622fe9acdfa80471264b1013665b5f54641 (diff)
parent758f7cd142a266a68569cbc1dd86d4ab1b6d129d (diff)
downloadmongo-88e8a5eed0f77cbbd99e1819e39c820627841a1b.tar.gz
Merge branch 'develop' into lsm-fixes
Diffstat (limited to 'src')
-rw-r--r--src/lsm/lsm_stat.c2
-rw-r--r--src/support/scratch.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/lsm/lsm_stat.c b/src/lsm/lsm_stat.c
index 30148de9a9f..a626032fe8a 100644
--- a/src/lsm/lsm_stat.c
+++ b/src/lsm/lsm_stat.c
@@ -39,7 +39,7 @@ __lsm_stat_init(WT_SESSION_IMPL *session, const char *uri, WT_CURSOR_STAT *cst)
"statistics=(%s%s%s)",
cst->stat_clear ? "clear," : "",
cst->stat_all ? "all," : "",
- cst->stat_fast ? "fast," : "");
+ !cst->stat_all && cst->stat_fast ? "fast," : "");
cfg[1] = disk_cfg[1] = config;
}
diff --git a/src/support/scratch.c b/src/support/scratch.c
index 4b342977372..1aae8649901 100644
--- a/src/support/scratch.c
+++ b/src/support/scratch.c
@@ -127,7 +127,8 @@ __wt_buf_set(
/* Ensure the buffer is large enough. */
WT_RET(__wt_buf_initsize(session, buf, size));
- memcpy(buf->mem, data, size);
+ /* Copy, allowing for overlapping strings. */
+ memmove(buf->mem, data, size);
return (0);
}