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:
parent
5750107b65
commit
c3d5771054
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue