Commit 888564d4 authored by Yoni Fogel's avatar Yoni Fogel

Fix typo in error message

git-svn-id: file:///svn/toku/tokudb@11310 c7de825b-a66e-492c-adef-691d508d4ae1
parent fd0198ae
......@@ -3107,11 +3107,11 @@ db_put_check_size_constraints(DB *db, DBT *key, DBT *val) {
if (dupsort) {
limit = nodesize / (2*BRT_FANOUT-1);
if (key->size + val->size >= limit)
r = toku_ydb_do_error(db->dbenv, EINVAL, "The largest (key + val) item allowed is %u bytes", limit);
r = toku_ydb_do_error(db->dbenv, EINVAL, "The largest (key + val) item allowed is %u bytes", limit-1);
} else {
limit = nodesize / (3*BRT_FANOUT-1);
if (key->size >= limit || val->size >= limit)
r = toku_ydb_do_error(db->dbenv, EINVAL, "The largest key or val item allowed is %u bytes", limit);
r = toku_ydb_do_error(db->dbenv, EINVAL, "The largest key or val item allowed is %u bytes", limit-1);
}
return r;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment