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
75b4c32c
Commit
75b4c32c
authored
Dec 06, 2004
by
brian@avenger.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed need for storage engines to write a default external_lock() call.
parent
86618a12
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
11 deletions
+1
-11
sql/examples/ha_archive.cc
sql/examples/ha_archive.cc
+0
-9
sql/examples/ha_archive.h
sql/examples/ha_archive.h
+0
-1
sql/handler.h
sql/handler.h
+1
-1
No files found.
sql/examples/ha_archive.cc
View file @
75b4c32c
...
...
@@ -828,15 +828,6 @@ int ha_archive::optimize(THD* thd, HA_CHECK_OPT* check_opt)
}
/*
No transactions yet, so this is pretty dull.
*/
int
ha_archive
::
external_lock
(
THD
*
thd
,
int
lock_type
)
{
DBUG_ENTER
(
"ha_archive::external_lock"
);
DBUG_RETURN
(
0
);
}
/*
Below is an example of how to setup row level locking.
*/
...
...
sql/examples/ha_archive.h
View file @
75b4c32c
...
...
@@ -96,7 +96,6 @@ public:
int
write_data_header
(
gzFile
file_to_write
);
void
position
(
const
byte
*
record
);
void
info
(
uint
);
int
external_lock
(
THD
*
thd
,
int
lock_type
);
int
create
(
const
char
*
name
,
TABLE
*
form
,
HA_CREATE_INFO
*
create_info
);
int
optimize
(
THD
*
thd
,
HA_CHECK_OPT
*
check_opt
);
void
start_bulk_insert
(
ha_rows
rows
);
...
...
sql/handler.h
View file @
75b4c32c
...
...
@@ -449,7 +449,7 @@ public:
virtual
int
extra_opt
(
enum
ha_extra_function
operation
,
ulong
cache_size
)
{
return
extra
(
operation
);
}
virtual
int
reset
()
{
return
extra
(
HA_EXTRA_RESET
);
}
virtual
int
external_lock
(
THD
*
thd
,
int
lock_type
)
=
0
;
virtual
int
external_lock
(
THD
*
thd
,
int
lock_type
)
{
return
0
;
}
virtual
void
unlock_row
()
{}
virtual
int
start_stmt
(
THD
*
thd
)
{
return
0
;}
/*
...
...
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