Fix ef_write() for privately mapped non-file-backed table

Commit f8dcb7b0 promised that combination to work, but got it wrong.
It hasn't been used, so no real harm done.
This commit is contained in:
Markus Armbruster 2008-05-17 18:48:48 +02:00
parent 5750107b65
commit c3d5771054

View file

@ -432,7 +432,7 @@ ef_write(int type, int id, void *from)
ep->prewrite(id, from); ep->prewrite(id, from);
if (CANT_HAPPEN((ep->flags & EFF_MEM) ? id >= ep->fids : id > ep->fids)) if (CANT_HAPPEN((ep->flags & EFF_MEM) ? id >= ep->fids : id > ep->fids))
return 0; /* not implemented */ return 0; /* not implemented */
if (!(ep->flags & EFF_PRIVATE)) { if (ep->fd >= 0 && !(ep->flags & EFF_PRIVATE)) {
if (do_write(ep, from, id, 1, time(NULL)) < 0) if (do_write(ep, from, id, 1, time(NULL)) < 0)
return 0; return 0;
} }