Fix ef_open()'s error message for file larger than static cache
The message claims the file is larger than it actually is. Broken
since commit 71908018
(v4.3.0) implemented static cache in ef_open().
Harmless, because no file-backed table has a statically allocated
cache.
This commit is contained in:
parent
bd453cd821
commit
5703bdd61c
1 changed files with 2 additions and 2 deletions
|
@ -117,8 +117,8 @@ ef_open(int type, int how, int nelt)
|
||||||
/* ep->cache already points to space for ep->csize elements */
|
/* ep->cache already points to space for ep->csize elements */
|
||||||
if (how & EFF_MEM) {
|
if (how & EFF_MEM) {
|
||||||
if (ep->fids > ep->csize) {
|
if (ep->fids > ep->csize) {
|
||||||
logerror("Can't open %s: file larger than %d bytes",
|
logerror("Can't open %s (file larger than %d records)",
|
||||||
ep->file, ep->fids * ep->size);
|
ep->file, ep->csize);
|
||||||
close(fd);
|
close(fd);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue