mirror of
https://github.com/MariaDB/server.git
synced 2026-05-12 01:50:11 +02:00
post-review fixes
include/atomic/generic-msvc.h: prevent possible compiler warnings include/lf.h: comments, better definition for LF_HASH_OVERHEAD include/maria.h: define MARIA_CANNOT_ROLLBACK here include/my_pthread.h: avoid possible name clash include/waiting_threads.h: comments, const, move WT_RESOURCE to waiting_threads.c mysql-test/suite/maria/r/maria_notembedded.result: new test mysql-test/suite/maria/t/maria_notembedded.test: new test - 5-way deadlock mysys/lf_hash.c: better definition for LF_HASH_OVERHEAD mysys/my_static.c: comment mysys/my_thr_init.c: casts mysys/waiting_threads.c: comments, asserts, etc server-tools/instance-manager/parse.cc: fix my_init_dynamic_array() to follow new calling conventions sql/mysqld.cc: call wt_init after set_proper_floating_point_mode sql/sql_class.h: comment storage/maria/ha_maria.cc: move MARIA_CANNOT_ROLLBACK to a common header storage/maria/ma_commit.c: comment storage/maria/ma_write.c: comments, check for HA_ERR_FOUND_DUPP_KEY storage/maria/trnman.c: comments, assert storage/maria/trnman.h: comments storage/maria/unittest/trnman-t.c: be paranoid unittest/mysys/lf-t.c: comments unittest/mysys/waiting_threads-t.c: comments, safety, memory leak
This commit is contained in:
parent
e01f6c8971
commit
9c96fde120
27 changed files with 559 additions and 355 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 2007 MySQL AB
|
||||
/* Copyright (C) 2007-2008 MySQL AB, 2008-2009 Sun Microsystems, Inc.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
#include "trnman.h"
|
||||
|
||||
/**
|
||||
@brief writes a COMMIT record to log and commits transaction in memory
|
||||
writes a COMMIT record to log and commits transaction in memory
|
||||
|
||||
@param trn transaction
|
||||
|
||||
|
|
@ -82,7 +82,7 @@ int ma_commit(TRN *trn)
|
|||
|
||||
|
||||
/**
|
||||
@brief Writes a COMMIT record for a transaciton associated with a file
|
||||
Writes a COMMIT record for a transaciton associated with a file
|
||||
|
||||
@param info Maria handler
|
||||
|
||||
|
|
@ -98,13 +98,17 @@ int maria_commit(MARIA_HA *info)
|
|||
|
||||
|
||||
/**
|
||||
@brief Starts a transaction on a file handle
|
||||
Starts a transaction on a file handle
|
||||
|
||||
@param info Maria handler
|
||||
|
||||
@return Operation status
|
||||
@retval 0 ok
|
||||
@retval # Error code.
|
||||
|
||||
@note this can be used only in single-threaded programs (tests),
|
||||
because we create a transaction (trnman_new_trn) with WT_THD=0.
|
||||
XXX it needs to be fixed when we'll start using maria_begin from SQL.
|
||||
*/
|
||||
|
||||
int maria_begin(MARIA_HA *info)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue