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
619ca417
Commit
619ca417
authored
Jan 12, 2006
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into perch.ndb.mysql.com:/home/jonas/src/51-new
parents
f78e6028
c505553b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
92 deletions
+11
-92
ndb/tools/ndb_error_reporter
ndb/tools/ndb_error_reporter
+0
-88
storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp
storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp
+3
-2
storage/ndb/src/kernel/blocks/suma/Suma.cpp
storage/ndb/src/kernel/blocks/suma/Suma.cpp
+8
-2
No files found.
ndb/tools/ndb_error_reporter
deleted
100755 → 0
View file @
f78e6028
#!/usr/bin/perl -w
use
strict
;
if
(
@ARGV
<
1
)
{
print
STDERR
"
Usage:
\n
";
print
STDERR
"
\t
ndb_error_reporter config.ini [username] [--fs]
\n\n
";
print
STDERR
"
\t
username is a user that you can use to ssh into
\n
";
print
STDERR
"
\t
all of your nodes with.
\n\n
";
print
STDERR
"
\t
--fs means include the filesystems in the report
\n
";
print
STDERR
"
\t
WARNING: This may require a lot of disk space.
\n
";
print
STDERR
"
\t
Only use this option when asked to.
\n\n
";
exit
(
1
);
}
my
$config_file
=
$ARGV
[
0
];
my
$config_get_fs
=
0
;
my
$config_username
=
'';
if
(
defined
(
$ARGV
[
1
]))
{
$config_get_fs
=
1
if
$ARGV
[
1
]
eq
'
--fs
';
$config_username
=
$ARGV
[
1
]
.
'
@
'
if
$ARGV
[
1
]
ne
'
--fs
';
$config_get_fs
=
(
defined
$ARGV
[
2
]
&&
$ARGV
[
2
]
eq
'
--fs
')?
1
:
$config_get_fs
;
}
if
(
!
stat
(
$config_file
))
{
print
STDERR
"
Cannot open configuration file.
\n\n
";
exit
(
1
);
}
my
@nodes
=
split
'
',`
ndb_config --config-file=
$ARGV
[0] --nodes --query=id --type=ndbd
`;
push
@nodes
,
split
'
',`
ndb_config --config-file=
$ARGV
[0] --nodes --query=id --type=ndb_mgmd
`;
sub
config
{
my
$nodeid
=
shift
;
my
$query
=
shift
;
my
$res
=
`
ndb_config --config-file=
$ARGV
[0] --id=
$nodeid
--query=
$query
`;
chomp
$res
;
$res
;
}
my
@t
=
localtime
();
my
$reportdir
=
sprintf
('
ndb_error_report_%u%02u%02u%02u%02u%02u
',
(
$t
[
5
]
+
1900
),(
$t
[
4
]
+
1
),
$t
[
3
],
$t
[
2
],
$t
[
1
],
$t
[
0
]);
if
(
stat
(
$reportdir
)
||
stat
(
$reportdir
.
'
tar.bz2
'))
{
print
STDERR
"
It looks like another ndb_error_report process is running.
\n
";
print
STDERR
"
If that is not the case, remove the ndb_error_report directory
";
print
STDERR
"
and run ndb_error_report again.
\n\n
";
exit
(
1
);
}
mkdir
(
$reportdir
);
foreach
my
$node
(
@nodes
)
{
print
"
\n\n
Copying data from node
$node
"
.
((
$config_get_fs
)?"
with filesystem
":"")
.
"
\n\n
";
my
$recurse
=
(
$config_get_fs
)?'
-r
':'';
system
'
scp
'
.
$recurse
.
$config_username
.
config
(
$node
,'
host
')
.
'
:
'
.
config
(
$node
,'
datadir
')
.
"
/ndb_
"
.
$node
.
"
*
"
.
"
$reportdir
/
\n
";
}
print
"
\n\n
Copying configuration file...
\n\n\t
$config_file
\n\n
";
system
"
cp
$config_file
$reportdir
/
";
my
$r
=
system
'
bzip2 2>&1 > /dev/null < /dev/null
';
my
$outfile
;
if
(
$r
==
0
)
{
$outfile
=
"
$reportdir
.tar.bz2
";
system
"
tar c
$reportdir
|bzip2 >
$outfile
";
}
else
{
$outfile
=
"
$reportdir
.tar.gz
";
system
"
tar c
$reportdir
|gzip >
$outfile
";
}
system
"
rm -rf
$reportdir
";
print
"
\n\n
Please attach
$outfile
to your error report
\n\n
";
storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp
View file @
619ca417
...
...
@@ -15107,7 +15107,7 @@ Dbdict::create_file_abort_complete(Signal* signal, SchemaOp* op)
}
release_object
(
f_ptr
.
p
->
m_obj_ptr_i
);
c_file_
pool
.
release
(
f_ptr
);
c_file_
hash
.
release
(
f_ptr
);
}
execute
(
signal
,
op
->
m_callback
,
0
);
...
...
@@ -15145,7 +15145,7 @@ Dbdict::drop_file_commit_complete(Signal* signal, SchemaOp* op)
decrease_ref_count
(
fg_ptr
.
p
->
m_obj_ptr_i
);
release_object
(
f_ptr
.
p
->
m_obj_ptr_i
);
c_file_
pool
.
release
(
f_ptr
);
c_file_
hash
.
release
(
f_ptr
);
execute
(
signal
,
op
->
m_callback
,
0
);
}
...
...
@@ -15310,6 +15310,7 @@ Dbdict::drop_fg_commit_start(Signal* signal, SchemaOp* op)
tableEntry
->
m_tableState
=
SchemaFile
::
DROP_TABLE_COMMITTED
;
computeChecksum
(
xsf
,
objId
/
NDB_SF_PAGE_ENTRIES
);
release_object
(
filePtr
.
p
->
m_obj_ptr_i
);
c_file_hash
.
remove
(
filePtr
);
}
list
.
release
();
}
...
...
storage/ndb/src/kernel/blocks/suma/Suma.cpp
View file @
619ca417
...
...
@@ -4093,8 +4093,14 @@ Suma::get_buffer_ptr(Signal* signal, Uint32 buck, Uint32 gci, Uint32 sz)
Bucket
*
bucket
=
c_buckets
+
buck
;
Page_pos
pos
=
bucket
->
m_buffer_head
;
Buffer_page
*
page
=
(
Buffer_page
*
)
m_tup
->
c_page_pool
.
getPtr
(
pos
.
m_page_id
);
Uint32
*
ptr
=
page
->
m_data
+
pos
.
m_page_pos
;
Buffer_page
*
page
=
0
;
Uint32
*
ptr
=
0
;
if
(
likely
(
pos
.
m_page_id
!=
RNIL
))
{
page
=
(
Buffer_page
*
)
m_tup
->
c_page_pool
.
getPtr
(
pos
.
m_page_id
);
ptr
=
page
->
m_data
+
pos
.
m_page_pos
;
}
const
bool
same_gci
=
(
gci
==
pos
.
m_last_gci
)
&&
(
!
ERROR_INSERTED
(
13022
));
...
...
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