I am sending new patch files. I tested the program using temporary TABLE OID for test. Bug is fixed.
The following are working. - Manage TABLE OID Set cache data on memcached. Key is MD5(username + query + databasename). Write MD5 key in text file. File is named (tamporary)TABLE OID. MD5 key is written every line in text file. If table is updated(still using "check_ineligible_cache" function), delete cache data on memcached using MD5 key in TABLE OID's file, and remove this file related to updated table. -- best regards Masanori YAMAZAKI email: [email protected] 2011/6/30 Tatsuo Ishii <[email protected]> > >>> 3) What is this code doing? "con" is never > >>> used. memqcache_total_size's 3rd arg is "oid", while you are > >>> passing a file descriptor. > >>> /* save the received result to buf for each kind */ > >>> if (pool_config->memory_cache_ > > enabled) > >>> { > >>> char* con; > >>> memqcache_register(kind, frontend, frontend->fd, p1, > > len1); > >>> } > > I corrected it. I think that "backend->info->key" is table oid. > > Is it wrong? > > Wrong. See ConnectionInfo. > > int key; /* cancel key */ > -- > Tatsuo Ishii > SRA OSS, Inc. Japan > English: http://www.sraoss.co.jp/index_en.php > Japanese: http://www.sraoss.co.jp >
memqcache_patch.tar.gz
Description: GNU Zip compressed data
_______________________________________________ Pgpool-hackers mailing list [email protected] http://pgfoundry.org/mailman/listinfo/pgpool-hackers
