diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2012-04-19 08:24:55 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2012-04-19 08:24:55 +0200 |
commit | 9165243f9f5fda2dfefb4625231b95860ea8672e (patch) | |
tree | 6e7d1350a0aaa8a84232cc8b4e4d3a71af9b3c54 /pgsql.h | |
parent | ca8a3205f89ebbffdd54ae39262cd792e0bacc21 (diff) | |
download | pgfuse-9165243f9f5fda2dfefb4625231b95860ea8672e.tar.gz pgfuse-9165243f9f5fda2dfefb4625231b95860ea8672e.tar.bz2 |
reference counting pushed to database
implemented simple strategy: don't allow files to be open twice
Diffstat (limited to 'pgsql.h')
-rw-r--r-- | pgsql.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -34,6 +34,7 @@ typedef struct PgMeta { struct timespec ctime; /* last status change time */ struct timespec mtime; /* last modification time */ struct timespec atime; /* last access time */ + int ref_count; /* how many open file handles exist for this file */ } PgMeta; int psql_get_meta( PGconn *conn, const char *path, PgMeta *meta ); |