* Fix the locking patch for Berkeley DB 4.5.

This commit is contained in:
Eelco Dolstra 2006-11-07 14:51:28 +00:00
parent 7e85a2af5f
commit 983c5e3fce

View file

@ -12,7 +12,7 @@ diff -rc db-4.5.20-orig/os/os_flock.c db-4.5.20/os/os_flock.c
+ * Windows file locking interferes with read/write operations, so we
+ * map the ranges to an area past the end of the file.
+ */
+ DB_ASSERT(offset < (off_t) 1 << 62);
+ DB_ASSERT(dbenv, offset < (off_t) 1 << 62);
+ offset += (off_t) 1 << 62;
+ #endif
+