]> git.pond.sub.org Git - empserver/commit
Replace EFF_RDONLY by EFF_PRIVATE
authorMarkus Armbruster <armbru@pond.sub.org>
Thu, 21 Feb 2008 20:04:11 +0000 (21:04 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 26 Feb 2008 19:40:59 +0000 (20:40 +0100)
commitf8dcb7b07b342eabc41e820c4f845c0adf510821
tree87019fdaa687bedb448c2d8b9e74d60bcdbef004
parentef71897051abfbbf364595e923460377e15018ee
Replace EFF_RDONLY by EFF_PRIVATE

Read-only was a bit of a misnomer: you could write to the table by
obtaining a pointer into it from ef_ptr(), you just couldn't write to
the backing file.

Semantic changes:

* ef_flush() is now allowed when the table is file-backed or privately
  mapped.  Before, it had to be file-backed.  Flushing a privately
  mapped table does nothing, just like flushing a read-only table did.

* ef_write() is now allowed when the table is file-backed or fully
  cached.  Before, it had to be file-backed and not read-only.
  Writing to a privately mapped file-backed table doesn't write to the
  file.

* ef_extend() is not implemented for privately mapped tables, just
  like it wasn't implemented for read-only tables.
include/file.h
src/lib/common/file.c
src/lib/global/file.c