diff options
author | Keith Bostic <keith@wiredtiger.com> | 2014-05-05 09:59:23 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2014-05-05 09:59:23 -0400 |
commit | a95292657755b62346b46a2302445faea038d6f2 (patch) | |
tree | a78273257a628bf5166c813cebf0128367e55ace /src/meta | |
parent | 1ecf3ced6fc6a65869b34976e2b3c3279742d455 (diff) | |
download | mongo-a95292657755b62346b46a2302445faea038d6f2.tar.gz |
A somewhat different approach to --enable-verbose: inline __wt_verbose()
and the test of the verbose flag, remove all of the WT_VERBOSE_XXX #defines
other than WT_VERBOSE_ISSET.
Diffstat (limited to 'src/meta')
-rw-r--r-- | src/meta/meta_table.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/meta/meta_table.c b/src/meta/meta_table.c index 49f472e267b..75cf4713c48 100644 --- a/src/meta/meta_table.c +++ b/src/meta/meta_table.c @@ -91,10 +91,10 @@ __wt_metadata_insert( WT_CURSOR *cursor; WT_DECL_RET; - WT_VERBOSE_RET(session, metadata, + WT_RET(__wt_verbose(session, WT_VERB_METADATA, "Insert: key: %s, value: %s, tracking: %s, %s" "turtle", key, value, WT_META_TRACKING(session) ? "true" : "false", - __metadata_turtle(key) ? "" : "not "); + __metadata_turtle(key) ? "" : "not ")); if (__metadata_turtle(key)) WT_RET_MSG(session, EINVAL, @@ -122,10 +122,10 @@ __wt_metadata_update( WT_CURSOR *cursor; WT_DECL_RET; - WT_VERBOSE_RET(session, metadata, + WT_RET(__wt_verbose(session, WT_VERB_METADATA, "Update: key: %s, value: %s, tracking: %s, %s" "turtle", key, value, WT_META_TRACKING(session) ? "true" : "false", - __metadata_turtle(key) ? "" : "not "); + __metadata_turtle(key) ? "" : "not ")); if (__metadata_turtle(key)) return (__wt_turtle_update(session, key, value)); @@ -152,10 +152,10 @@ __wt_metadata_remove(WT_SESSION_IMPL *session, const char *key) WT_CURSOR *cursor; WT_DECL_RET; - WT_VERBOSE_RET(session, metadata, + WT_RET(__wt_verbose(session, WT_VERB_METADATA, "Remove: key: %s, tracking: %s, %s" "turtle", key, WT_META_TRACKING(session) ? "true" : "false", - __metadata_turtle(key) ? "" : "not "); + __metadata_turtle(key) ? "" : "not ")); if (__metadata_turtle(key)) WT_RET_MSG(session, EINVAL, @@ -187,10 +187,10 @@ __wt_metadata_search( *valuep = NULL; - WT_VERBOSE_RET(session, metadata, + WT_RET(__wt_verbose(session, WT_VERB_METADATA, "Search: key: %s, tracking: %s, %s" "turtle", key, WT_META_TRACKING(session) ? "true" : "false", - __metadata_turtle(key) ? "" : "not "); + __metadata_turtle(key) ? "" : "not ")); if (__metadata_turtle(key)) return (__wt_turtle_read(session, key, valuep)); |