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:
Markus Armbruster 2011-04-27 19:44:26 +02:00
parent bd453cd821
commit 5703bdd61c

View file

@ -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;
} }