diff options
author | Keith Bostic <keith@wiredtiger.com> | 2016-03-29 13:13:45 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2016-03-29 13:13:45 -0400 |
commit | e1f4765e7110802991b349799223d3efd29f4a70 (patch) | |
tree | 2bd223817f6c5d17f0e16204e93f3a73b60491f5 /src/os_common | |
parent | 6ee271cf24d1f2264fb6d962f15d156424a66075 (diff) | |
download | mongo-e1f4765e7110802991b349799223d3efd29f4a70.tar.gz |
WT-2330: in-memory configurations should not create on-disk collection files
Prettify the verbose output when a handle is opened.
Diffstat (limited to 'src/os_common')
-rw-r--r-- | src/os_common/os_fhandle.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/os_common/os_fhandle.c b/src/os_common/os_fhandle.c index 9013d67d22b..eb7323c3e26 100644 --- a/src/os_common/os_fhandle.c +++ b/src/os_common/os_fhandle.c @@ -119,14 +119,13 @@ __open_verbose(WT_SESSION_IMPL *session, break; } - sep = ""; WT_RET(__wt_scr_alloc(session, 0, &tmp)); - + sep = " ("; #define WT_OPEN_VERBOSE_FLAG(f, name) \ if (LF_ISSET(f)) { \ WT_ERR(__wt_buf_catfmt( \ session, tmp, "%s%s", sep, name)); \ - sep = ","; \ + sep = ", "; \ } WT_OPEN_VERBOSE_FLAG(WT_OPEN_CREATE, "create"); @@ -137,9 +136,12 @@ __open_verbose(WT_SESSION_IMPL *session, WT_OPEN_VERBOSE_FLAG(WT_STREAM_READ, "stream-read"); WT_OPEN_VERBOSE_FLAG(WT_STREAM_WRITE, "stream-write"); + if (tmp->size != 0) + WT_ERR(__wt_buf_catfmt(session, tmp, ")")); + ret = __wt_verbose(session, WT_VERB_FILEOPS, - "%s: handle-open: type %s, flags %s", - name, file_type_tag, (char *)tmp->data); + "%s: handle-open: type %s%s", + name, file_type_tag, tmp->size == 0 ? "" : (char *)tmp->data); err: __wt_scr_free(session, &tmp); return (ret); |