summaryrefslogtreecommitdiff
path: root/pgsql.h
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-04-19 08:24:55 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-04-19 08:24:55 +0200
commit9165243f9f5fda2dfefb4625231b95860ea8672e (patch)
tree6e7d1350a0aaa8a84232cc8b4e4d3a71af9b3c54 /pgsql.h
parentca8a3205f89ebbffdd54ae39262cd792e0bacc21 (diff)
downloadpgfuse-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pgsql.h b/pgsql.h
index 04e9376..c2ad54a 100644
--- a/pgsql.h
+++ b/pgsql.h
@@ -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 );