Re: [sqlite] How is the page-cache filled?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/08/2011 12:11 PM, Clemens Eisserer wrote: > * Which version of the source should I use? The amalgamized source > isn't really useful, however for all other source-archives its stated > its not recommended using. You should check out the code and use Fossil (the SQLite source code control tool). That way you will be using the same source and files as the authors. You'll also be able to keep up to date with their changes. See the very bottom of http://sqlite.org/download.html This will also allow you to work with the test suite and add your own tests. Your code changes won't actually be useful if they break things! > * Where are pages read and written? I found the page-cache, but not > the functions that read/write those pages to disk. A small hint would > be really helpful :) Pavel already pointed you to where the actual read/write calls are made - VFS. However controlling when and why they are made are in the pager code. When you work on the real SQLite source you'll find pager.c and pcache.c. Roger -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk2gSg8ACgkQmOOfHg372QQzzgCgq4khVN7a43Y4qQhW1TXcixOS LIAAn1rmnOyIklV/z6STvvE9BN5F3XEn =2tds -END PGP SIGNATURE- ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Re: [sqlite] How is the page-cache filled?
> * Which version of the source should I use? The amalgamized source > isn't really useful Why it's not useful for you if it contains all the functionality SQLite have? > * Where are pages read and written? I found the page-cache, but not > the functions that read/write those pages to disk. You are looking for the VFS layer. Look for functions unixWrite, unixRead, winWrite, winRead. Pavel On Fri, Apr 8, 2011 at 3:11 PM, Clemens Eisserer wrote: > Hi, > > I would like to create a version of sqlite, which includes a few > changes to the way pages are loaded and written to disk. > > * Which version of the source should I use? The amalgamized source > isn't really useful, however for all other source-archives its stated > its not recommended using. > > * Where are pages read and written? I found the page-cache, but not > the functions that read/write those pages to disk. A small hint would > be really helpful :) > > Thanks a lot, Clemens > ___ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
[sqlite] How is the page-cache filled?
Hi, I would like to create a version of sqlite, which includes a few changes to the way pages are loaded and written to disk. * Which version of the source should I use? The amalgamized source isn't really useful, however for all other source-archives its stated its not recommended using. * Where are pages read and written? I found the page-cache, but not the functions that read/write those pages to disk. A small hint would be really helpful :) Thanks a lot, Clemens ___ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users