 					if (State == Pager::PAGER_READER)
 					{
 						_assert(rc == RC_OK);
-						rc = pagerLockDb(this, VFile::LOCK_RESERVED);
+						rc = PagerLockDb(this, VFile::LOCK_RESERVED);
 					}
 					if (rc == RC_OK)
 						Vfs->Delete(Journal, false);
 					if (rc == RC_OK && state == Pager::PAGER_READER)
-						pagerUnlockDb(this, VFile::LOCK_SHARED);
+						PagerUnlockDb(this, VFile::LOCK_SHARED);
 					else if (state == Pager::PAGER_OPEN)
-						pager_unlock(this);
+						Pager_Unlock(this);
 					_assert(state == State);
 				}
 			}

		if (rc == RC_OK)
		{
			master = (char *)pager->TmpSpace;
			rc = readMasterJournal(pager->JournalFile, master, vfs->MaxPathname + 1);
			ASSERTCOVERAGE(rc != RC_OK);
		}
		if (rc == RC_OK && (pager->State >= Pager::PAGER_WRITER_DBMOD || pager->State == Pager::PAGER_OPEN))
			rc = pager->Sync();
		if (rc == RC_OK)
		{
			rc = pager_end_transaction(pager, master[0] != '\0', false);
			ASSERTCOVERAGE(rc != RC_OK);
		}
		if (rc == RC_OK && master[0] && res)
		{
			// If there was a master journal and this routine will return success, see if it is possible to delete the master journal.
			rc = pager_delmaster(pager, master);
			ASSERTCOVERAGE(rc != RC_OK);
		}

		// The Pager.sectorSize variable may have been updated while rolling back a journal created by a process with a different sector size
		// value. Reset it to the correct value for this process.
		setSectorSize(pager);
		return rc;
	}

	__device__ static RC readDbPage(PgHdr *pg)
	{
		Pager *pager = pg->Pager; // Pager object associated with page pPg


						rc = pager->Acquire(id, &page2, false);
						if (rc == RC_OK)
						{
							rc = Pager_Write(page2);
							if (page2->Flags & PgHdr::PGHDR_NEED_SYNC)
								needSync = true;
							Unref(page2);
						}
					}
				}
				else if ((page2 = Pager_Lookup(pager, id)) != 0)
				{
					if (page2->Flags & PgHdr::PGHDR_NEED_SYNC)
						needSync = true;
