Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
af744545
Commit
af744545
authored
Mar 29, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added more debugging printouts
parent
734eda5f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+6
-1
No files found.
sql/ha_ndbcluster.cc
View file @
af744545
...
...
@@ -3397,6 +3397,7 @@ int ha_ndbcluster::rnd_pos(byte *buf, byte *pos)
The partition id has been fetched from ndb
and has been stored directly after the hidden key
*/
DBUG_DUMP
(
"key+part"
,
(
char
*
)
pos
,
key_length
);
key_length
=
ref_length
-
sizeof
(
m_part_id
);
part_spec
.
start_part
=
part_spec
.
end_part
=
*
(
pos
+
key_length
);
}
...
...
@@ -3413,6 +3414,7 @@ int ha_ndbcluster::rnd_pos(byte *buf, byte *pos)
}
DBUG_PRINT
(
"info"
,
(
"partition id %u"
,
part_spec
.
start_part
));
}
DBUG_DUMP
(
"key"
,
(
char
*
)
pos
,
key_length
);
DBUG_RETURN
(
pk_read
(
pos
,
key_length
,
buf
,
part_spec
.
start_part
));
}
}
...
...
@@ -3498,7 +3500,10 @@ void ha_ndbcluster::position(const byte *record)
#endif
memcpy
(
ref
,
m_ref
,
key_length
);
}
#ifndef DBUG_OFF
if
(
table_share
->
primary_key
==
MAX_KEY
&&
m_use_partition_function
)
DBUG_DUMP
(
"key+part"
,
(
char
*
)
ref
,
key_length
+
sizeof
(
m_part_id
));
#endif
DBUG_DUMP
(
"ref"
,
(
char
*
)
ref
,
key_length
);
DBUG_VOID_RETURN
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment