diff options
author | Keith Bostic <keith@wiredtiger.com> | 2015-02-02 19:20:33 -0500 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2015-02-02 19:20:33 -0500 |
commit | a26d87a53eb2ac2dcae9312b7979499c34c11613 (patch) | |
tree | 38b6553705ee8396d7ac52eef9ebbb5026850e04 /src/support/err.c | |
parent | 8545c4b3b7f5ed306215c82f1ad1cbe3664f0c50 (diff) | |
download | mongo-a26d87a53eb2ac2dcae9312b7979499c34c11613.tar.gz |
Replace wiredtiger_strerror_r with WT_SESSION.strerror, reference #1516.
Diffstat (limited to 'src/support/err.c')
-rw-r--r-- | src/support/err.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/support/err.c b/src/support/err.c index d766fcba33a..49a3891c58a 100644 --- a/src/support/err.c +++ b/src/support/err.c @@ -409,6 +409,20 @@ __wt_ext_msg_printf( } /* + * __wt_ext_strerror -- + * Extension API call to return an error as a string. + */ +const char * +__wt_ext_strerror(WT_EXTENSION_API *wt_api, WT_SESSION *wt_session, int error) +{ + if (wt_session == NULL) + wt_session = (WT_SESSION *) + ((WT_CONNECTION_IMPL *)wt_api->conn)->default_session; + + return (wt_session->strerror(wt_session, error)); +} + +/* * __wt_progress -- * Progress message. */ |