summaryrefslogtreecommitdiff
path: root/src/cursor/cur_std.c
diff options
context:
space:
mode:
authorSusan LoVerso <sue@mongodb.com>2016-02-10 13:15:44 -0500
committerSusan LoVerso <sue@mongodb.com>2016-02-10 13:15:44 -0500
commitc09b6acc7ad97f202d57bf966e12aac10a59f04d (patch)
tree143f8d53d4296a4cfc2d9d541dfb14cd15257d7d /src/cursor/cur_std.c
parent5c872815b1f6b42f73056ee9d837b0ceafcd74d7 (diff)
downloadmongo-c09b6acc7ad97f202d57bf966e12aac10a59f04d.tar.gz
WT-2349 Add test testing methods not supported.
Added error message to unsupported options and fixed several tests to check for that message.
Diffstat (limited to 'src/cursor/cur_std.c')
-rw-r--r--src/cursor/cur_std.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cursor/cur_std.c b/src/cursor/cur_std.c
index 899df8a07cc..ec5a2e88331 100644
--- a/src/cursor/cur_std.c
+++ b/src/cursor/cur_std.c
@@ -15,9 +15,10 @@
int
__wt_cursor_notsup(WT_CURSOR *cursor)
{
- WT_UNUSED(cursor);
+ WT_SESSION_IMPL *session;
- return (ENOTSUP);
+ session = (WT_SESSION_IMPL *)cursor->session;
+ WT_RET_MSG(session, ENOTSUP, "Unsupported cursor operation");
}
/*