diff options
author | Keith Bostic <keith@wiredtiger.com> | 2015-03-20 10:31:28 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2015-03-20 10:31:28 -0400 |
commit | 94d3e1ff61eeff4801a64cc6f753eeb7a8eb9650 (patch) | |
tree | 24d2a9f1380a167b75036a529b9d92fd37f1ad82 /src/packing | |
parent | 9883fb3533fcea5c436cb473fa0643cdac1591ec (diff) | |
download | mongo-94d3e1ff61eeff4801a64cc6f753eeb7a8eb9650.tar.gz |
Add tests for illegal key/value format configurations.
Diffstat (limited to 'src/packing')
-rw-r--r-- | src/packing/pack_impl.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/packing/pack_impl.c b/src/packing/pack_impl.c index 0b699814fc1..c92325a4c23 100644 --- a/src/packing/pack_impl.c +++ b/src/packing/pack_impl.c @@ -44,6 +44,16 @@ __wt_struct_check(WT_SESSION_IMPL *session, } /* + * __wt_struct_confchk -- + * Check that the specified packing format is valid, configuration version. + */ +int +__wt_struct_confchk(WT_SESSION_IMPL *session, WT_CONFIG_ITEM *v) +{ + return (__wt_struct_check(session, v->str, v->len, NULL, NULL)); +} + +/* * __wt_struct_size -- * Calculate the size of a packed byte string. */ |