aboutsummaryrefslogtreecommitdiff
path: root/src/test_osinst.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2010-05-30 19:55:15 +0000
committerdrh <drh@noemail.net>2010-05-30 19:55:15 +0000
commit73b64e4d2e6b95cc9f58ca30bb4dbaae90b7c185 (patch)
treef061713ee901059afe2e20cbc57237364024b7ed /src/test_osinst.c
parenta7a0c615d7587c7f2f609a46db29e520dd5d5428 (diff)
downloadsqlite-73b64e4d2e6b95cc9f58ca30bb4dbaae90b7c185.tar.gz
sqlite-73b64e4d2e6b95cc9f58ca30bb4dbaae90b7c185.zip
Initial code for incremental checkpoint in WAL mode. This check-in compiles
on unix and runs as long as you do not engage WAL mode. WAL mode crashes and burns. Consider this check-in a baseline implementation for getting the new capability up and running. FossilOrigin-Name: ef3ba7a17ff90674d702e5694b9e792851ab6998
Diffstat (limited to 'src/test_osinst.c')
-rw-r--r--src/test_osinst.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test_osinst.c b/src/test_osinst.c
index 6697fa1ec..52e04fb9e 100644
--- a/src/test_osinst.c
+++ b/src/test_osinst.c
@@ -155,7 +155,7 @@ static int vfslogShmOpen(sqlite3_file *pFile);
static int vfslogShmSize(sqlite3_file *pFile, int reqSize, int *pNewSize);
static int vfslogShmGet(sqlite3_file *pFile, int,int*,volatile void **);
static int vfslogShmRelease(sqlite3_file *pFile);
-static int vfslogShmLock(sqlite3_file *pFile, int desiredLock, int *gotLock);
+static int vfslogShmLock(sqlite3_file *pFile, int ofst, int n, int flags);
static void vfslogShmBarrier(sqlite3_file*);
static int vfslogShmClose(sqlite3_file *pFile, int deleteFlag);
@@ -460,12 +460,12 @@ static int vfslogShmRelease(sqlite3_file *pFile){
vfslog_call(p->pVfslog, OS_SHMRELEASE, p->iFileId, t, rc, 0, 0);
return rc;
}
-static int vfslogShmLock(sqlite3_file *pFile, int desiredLock, int *gotLock){
+static int vfslogShmLock(sqlite3_file *pFile, int ofst, int n, int flags){
int rc;
sqlite3_uint64 t;
VfslogFile *p = (VfslogFile *)pFile;
t = vfslog_time();
- rc = p->pReal->pMethods->xShmLock(p->pReal, desiredLock, gotLock);
+ rc = p->pReal->pMethods->xShmLock(p->pReal, ofst, n, flags);
t = vfslog_time() - t;
vfslog_call(p->pVfslog, OS_SHMLOCK, p->iFileId, t, rc, 0, 0);
return rc;