mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 00:34:13 +08:00
mdbx: zero-length key is not an error for MDBX.
This commit is contained in:
parent
aacd468c05
commit
ab6cc14480
@ -487,9 +487,7 @@ static int process_db(MDB_dbi dbi, char *name, visitor *handler, int silent)
|
||||
goto bailout;
|
||||
}
|
||||
|
||||
if (key.mv_size == 0) {
|
||||
problem_add("entry", record_count, "key with zero length", NULL);
|
||||
} else if (key.mv_size > maxkeysize) {
|
||||
if (key.mv_size > maxkeysize) {
|
||||
problem_add("entry", record_count, "key length exceeds max-key-size",
|
||||
"%zu > %zu", key.mv_size, maxkeysize);
|
||||
} else if ((flags & MDB_INTEGERKEY)
|
||||
|
Loading…
x
Reference in New Issue
Block a user