diff options
author | dan <dan@noemail.net> | 2010-06-14 14:07:50 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2010-06-14 14:07:50 +0000 |
commit | 188019153dcf33ffd9d63ba17ab4a29e95561cce (patch) | |
tree | 647c20b7c73baf4a8f6592d5802fc74ed1c59946 /src/test6.c | |
parent | ad3cadd8b2b737c5190b805360f773383843172e (diff) | |
download | sqlite-188019153dcf33ffd9d63ba17ab4a29e95561cce.tar.gz sqlite-188019153dcf33ffd9d63ba17ab4a29e95561cce.zip |
Remove xShmGet/Size/Release from the sqlite3_vfs structure. Change the name of xShmPage to xShmMap. Remove some code that is now unused from os_unix.c and some of the test VFS implementations.
FossilOrigin-Name: fc0cabc15c97dde6a852b4f07df6d30f1d2c04bc
Diffstat (limited to 'src/test6.c')
-rw-r--r-- | src/test6.c | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/src/test6.c b/src/test6.c index 7acc1196e..d6e6db2c1 100644 --- a/src/test6.c +++ b/src/test6.c @@ -526,20 +526,6 @@ static int cfDeviceCharacteristics(sqlite3_file *pFile){ static int cfShmOpen(sqlite3_file *pFile){ return sqlite3OsShmOpen(((CrashFile*)pFile)->pRealFile); } -static int cfShmSize(sqlite3_file *pFile, int reqSize, int *pNew){ - return sqlite3OsShmSize(((CrashFile*)pFile)->pRealFile, reqSize, pNew); -} -static int cfShmGet( - sqlite3_file *pFile, - int reqSize, - int *pSize, - void volatile **pp -){ - return sqlite3OsShmGet(((CrashFile*)pFile)->pRealFile, reqSize, pSize, pp); -} -static int cfShmRelease(sqlite3_file *pFile){ - return sqlite3OsShmRelease(((CrashFile*)pFile)->pRealFile); -} static int cfShmLock(sqlite3_file *pFile, int ofst, int n, int flags){ return sqlite3OsShmLock(((CrashFile*)pFile)->pRealFile, ofst, n, flags); } @@ -549,17 +535,16 @@ static void cfShmBarrier(sqlite3_file *pFile){ static int cfShmClose(sqlite3_file *pFile, int delFlag){ return sqlite3OsShmClose(((CrashFile*)pFile)->pRealFile, delFlag); } -static int cfShmPage( +static int cfShmMap( sqlite3_file *pFile, /* Handle open on database file */ - int iPage, /* Page to retrieve */ - int pgsz, /* Size of pages */ + int iRegion, /* Region to retrieve */ + int sz, /* Size of regions */ int w, /* True to extend file if necessary */ void volatile **pp /* OUT: Mapped memory */ ){ - return sqlite3OsShmPage(((CrashFile*)pFile)->pRealFile, iPage, pgsz, w, pp); + return sqlite3OsShmMap(((CrashFile*)pFile)->pRealFile, iRegion, sz, w, pp); } - static const sqlite3_io_methods CrashFileVtab = { 2, /* iVersion */ cfClose, /* xClose */ @@ -575,13 +560,10 @@ static const sqlite3_io_methods CrashFileVtab = { cfSectorSize, /* xSectorSize */ cfDeviceCharacteristics, /* xDeviceCharacteristics */ cfShmOpen, /* xShmOpen */ - cfShmSize, /* xShmSize */ - cfShmGet, /* xShmGet */ - cfShmRelease, /* xShmRelease */ cfShmLock, /* xShmLock */ cfShmBarrier, /* xShmBarrier */ cfShmClose, /* xShmClose */ - cfShmPage /* xShmPage */ + cfShmMap /* xShmMap */ }; /* |