aboutsummaryrefslogtreecommitdiff
path: root/src/test_async.c
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2007-03-19 05:54:48 +0000
committerdanielk1977 <danielk1977@noemail.net>2007-03-19 05:54:48 +0000
commitb472117c1197f6f6978ed3d88ffa3b3aa4537f29 (patch)
tree25c445fdd78fe960e60d48e383ef4fee196a26c3 /src/test_async.c
parent8d3921772ff07fe1fa46bc5a566055a6654251af (diff)
downloadsqlite-b472117c1197f6f6978ed3d88ffa3b3aa4537f29.tar.gz
sqlite-b472117c1197f6f6978ed3d88ffa3b3aa4537f29.zip
Add new OS file method to return the sector-size of the underlying storage: sqlite3OsSectorSize() (CVS 3700)
FossilOrigin-Name: 5752d84d374205e011d49b0221d6237967fe0743
Diffstat (limited to 'src/test_async.c')
-rw-r--r--src/test_async.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/test_async.c b/src/test_async.c
index f5167341c..c27507227 100644
--- a/src/test_async.c
+++ b/src/test_async.c
@@ -650,6 +650,13 @@ static int asyncCheckReservedLock(OsFile *id){
return rc>SHARED_LOCK;
}
+static int asyncSectorSize(OsFile *id){
+ /* TODO: This is tricky to implement, as this backend might not have
+ ** an open file handle at this point.
+ */
+ return 512;
+}
+
/*
** This is broken. But sqlite3OsLockState() is only used for testing anyway.
*/
@@ -697,7 +704,8 @@ static int asyncOpenFile(
asyncLock,
asyncUnlock,
asyncLockState,
- asyncCheckReservedLock
+ asyncCheckReservedLock,
+ asyncSectorSize,
};
if( openForWriting && SQLITE_ASYNC_TWO_FILEHANDLES ){