diff options
Diffstat (limited to 'src/log/log.c')
-rw-r--r-- | src/log/log.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/log/log.c b/src/log/log.c index 9c3269c474c..3bf04d025d8 100644 --- a/src/log/log.c +++ b/src/log/log.c @@ -669,8 +669,7 @@ __log_openfile(WT_SESSION_IMPL *session, * check that the magic number and versions are correct. */ if (!ok_create) { - __wt_scr_free(session, &buf); - WT_ERR(__wt_scr_alloc(session, allocsize, &buf)); + WT_ERR(__wt_buf_grow(session, buf, allocsize)); memset(buf->mem, 0, allocsize); WT_ERR(__wt_read(session, *fh, 0, allocsize, buf->mem)); logrec = (WT_LOG_RECORD *)buf->mem; |