summaryrefslogtreecommitdiff
path: root/ndb
diff options
context:
space:
mode:
authorunknown <joreland@mysql.com>2005-06-09 07:52:02 +0200
committerunknown <joreland@mysql.com>2005-06-09 07:52:02 +0200
commit2e8a10334b6171ea4ea4c75c4272801768da6ab1 (patch)
treebc22752ac10b23d2fe96613331503ae1d029501f /ndb
parentdbfce2a55576b0a55b219110193e8fce32a78981 (diff)
parentb854d06bf03def4a1ecc43a96893dd7ec8f4b58c (diff)
downloadmariadb-git-2e8a10334b6171ea4ea4c75c4272801768da6ab1.tar.gz
Merge mysql.com:/home/jonas/src/mysql-4.1
into mysql.com:/home/jonas/src/mysql-5.0
Diffstat (limited to 'ndb')
-rw-r--r--ndb/src/kernel/blocks/ndbfs/Ndbfs.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/ndb/src/kernel/blocks/ndbfs/Ndbfs.cpp b/ndb/src/kernel/blocks/ndbfs/Ndbfs.cpp
index 9750e1c5179..6f848d7fe16 100644
--- a/ndb/src/kernel/blocks/ndbfs/Ndbfs.cpp
+++ b/ndb/src/kernel/blocks/ndbfs/Ndbfs.cpp
@@ -247,10 +247,10 @@ Ndbfs::readWriteRequest(int action, Signal * signal)
AsyncFile* openFile = theOpenFiles.find(filePointer);
const NewVARIABLE *myBaseAddrRef = &getBat(blockNumber)[fsRWReq->varIndex];
- unsigned int tPageSize;
- unsigned int tClusterSize;
- unsigned int tNRR;
- unsigned int tPageOffset;
+ UintPtr tPageSize;
+ UintPtr tClusterSize;
+ UintPtr tNRR;
+ UintPtr tPageOffset;
char* tWA;
FsRef::NdbfsErrorCodeType errorCode;
@@ -294,8 +294,8 @@ Ndbfs::readWriteRequest(int action, Signal * signal)
jam();
for (unsigned int i = 0; i < fsRWReq->numberOfPages; i++) {
jam();
- const Uint32 varIndex = fsRWReq->data.listOfPair[i].varIndex;
- const Uint32 fileOffset = fsRWReq->data.listOfPair[i].fileOffset;
+ const UintPtr varIndex = fsRWReq->data.listOfPair[i].varIndex;
+ const UintPtr fileOffset = fsRWReq->data.listOfPair[i].fileOffset;
if (varIndex >= tNRR) {
jam();
errorCode = FsRef::fsErrInvalidParameters;
@@ -316,8 +316,8 @@ Ndbfs::readWriteRequest(int action, Signal * signal)
errorCode = FsRef::fsErrInvalidParameters;
goto error;
}//if
- const Uint32 varIndex = fsRWReq->data.arrayOfPages.varIndex;
- const Uint32 fileOffset = fsRWReq->data.arrayOfPages.fileOffset;
+ const UintPtr varIndex = fsRWReq->data.arrayOfPages.varIndex;
+ const UintPtr fileOffset = fsRWReq->data.arrayOfPages.fileOffset;
request->par.readWrite.pages[0].offset = fileOffset * tPageSize;
request->par.readWrite.pages[0].size = tPageSize * fsRWReq->numberOfPages;
@@ -334,7 +334,7 @@ Ndbfs::readWriteRequest(int action, Signal * signal)
for (unsigned int i = 0; i < fsRWReq->numberOfPages; i++) {
jam();
- Uint32 varIndex = fsRWReq->data.listOfMemPages.varIndex[i];
+ UintPtr varIndex = fsRWReq->data.listOfMemPages.varIndex[i];
if (varIndex >= tNRR) {
jam();