mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 12:01:42 +01:00
Fix typo in error message
git-svn-id: file:///svn/toku/tokudb@11310 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
358afe6814
commit
72469007bf
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue