From 9165243f9f5fda2dfefb4625231b95860ea8672e Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 19 Apr 2012 08:24:55 +0200 Subject: reference counting pushed to database implemented simple strategy: don't allow files to be open twice --- pgsql.h | 1 + 1 file changed, 1 insertion(+) (limited to 'pgsql.h') 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 ); -- cgit v1.2.3-54-g00ecf