]> git.pond.sub.org Git - empserver/commitdiff
(ef_write): Don't call log_last_commands() directly, use oops(). If
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 28 May 2005 15:52:29 +0000 (15:52 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 28 May 2005 15:52:29 +0000 (15:52 +0000)
it's worth logging commands, then it's worth dumping core.

src/lib/common/file.c

index 6d86102d6188839ead811815cd50e122e5d0bf9a..55358358f194b84f509e9930a1988997c8a3b22c 100644 (file)
@@ -261,11 +261,7 @@ ef_write(int type, int id, void *from)
        to = ep->cache + (id - ep->baseid) * ep->size;
        memcpy(to, from, ep->size);
     }
-    if (id > ep->fids) {
-       logerror("WARNING ef_write: expanded %s by more than one id",
-                ep->name);
-       log_last_commands();
-    }
+    CANT_HAPPEN(id > ep->fids);
     if (id >= ep->fids) {
        if (ep->flags & EFF_MEM) {
            logerror("file %s went beyond %d items; won't be able toread item w/o restart",