summaryrefslogtreecommitdiff
path: root/src/support
diff options
context:
space:
mode:
authorKeith Bostic <keith.bostic@wiredtiger.com>2011-11-02 10:23:54 +0000
committerKeith Bostic <keith.bostic@wiredtiger.com>2011-11-02 10:23:54 +0000
commitc97cdc0913c8a55d71d24f5ba1b9e11cb52a0841 (patch)
treeb35eb270b1b39929d153eb474ee78a9acf268a7d /src/support
parentf926a2033168558667ef1cfa1aa4bc954151b2df (diff)
downloadmongo-c97cdc0913c8a55d71d24f5ba1b9e11cb52a0841.tar.gz
Clean up a couple of places where we declared and cleared a WT_BUF, but never
used it. Create a standard error message for "unknown object type".
Diffstat (limited to 'src/support')
-rw-r--r--src/support/err.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/support/err.c b/src/support/err.c
index 856a4292be8..a4f9ff23513 100644
--- a/src/support/err.c
+++ b/src/support/err.c
@@ -165,3 +165,14 @@ __wt_file_item_too_big(WT_SESSION_IMPL *session)
__wt_errx(session, "the item is too large for the file to store");
return (WT_ERROR);
}
+
+/*
+ * __wt_unknown_object_type --
+ * Print a standard error m essage when given an unknown object type.
+ */
+int
+__wt_unknown_object_type(WT_SESSION_IMPL *session, const char *uri)
+{
+ __wt_errx(session, "unknown object type: %s", uri);
+ return (EINVAL);
+}