From: Markus Armbruster Date: Wed, 27 Apr 2011 17:44:26 +0000 (+0200) Subject: Fix ef_open()'s error message for file larger than static cache X-Git-Tag: v4.3.28~79 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=5703bdd61ce3ceb4115a5564e4c142f7c3d8d8ea 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. --- diff --git a/src/lib/common/file.c b/src/lib/common/file.c index 9da797c4c..817201aab 100644 --- a/src/lib/common/file.c +++ b/src/lib/common/file.c @@ -117,8 +117,8 @@ ef_open(int type, int how, int nelt) /* ep->cache already points to space for ep->csize elements */ if (how & EFF_MEM) { if (ep->fids > ep->csize) { - logerror("Can't open %s: file larger than %d bytes", - ep->file, ep->fids * ep->size); + logerror("Can't open %s (file larger than %d records)", + ep->file, ep->csize); close(fd); return 0; }