summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-05-01 20:52:22 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-05-01 20:52:22 +0200
commit62486acd12a2c5ff8761717fef093fd87b055df5 (patch)
tree81c73bb4d3e8012dc37541b72b73f60d0e061e54
parent48f270b4690f085561cc855008d67445f08422e4 (diff)
downloadpgfuse-62486acd12a2c5ff8761717fef093fd87b055df5.tar.gz
pgfuse-62486acd12a2c5ff8761717fef093fd87b055df5.tar.bz2
fixed small size_t issue, passes the bonnie test now
-rw-r--r--BENCHMARKS8
-rw-r--r--pgsql.c2
2 files changed, 9 insertions, 1 deletions
diff --git a/BENCHMARKS b/BENCHMARKS
new file mode 100644
index 0000000..fe6c54f
--- /dev/null
+++ b/BENCHMARKS
@@ -0,0 +1,8 @@
+Version 1.03e ------Sequential Output------ --Sequential Input- --Random-
+ -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
+Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP
+euroserver 16M 466 1 468 0 462 0 +++++ +++ +++++ +++ 540.9 0
+ ------Sequential Create------ --------Random Create--------
+ -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete--
+files:max:min /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP
+euroserver 16 107 0 1387 2 105 0 115 0 1404 2 105 0
diff --git a/pgsql.c b/pgsql.c
index 5b7ff58..753f9de 100644
--- a/pgsql.c
+++ b/pgsql.c
@@ -320,7 +320,7 @@ int psql_read_buf( PGconn *conn, const int64_t id, const char *path, char *buf,
int idx;
char *dst;
PgMeta meta;
- int size;
+ size_t size;
int64_t tmp;
tmp = psql_read_meta( conn, id, path, &meta );