From 5703bdd61ce3ceb4115a5564e4c142f7c3d8d8ea Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Wed, 27 Apr 2011 19:44:26 +0200 Subject: [PATCH] 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. --- src/lib/common/file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.43.0