mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
#4579 get groupcommit test working with helgrind refs[t:4579]
git-svn-id: file:///svn/toku/tokudb@40421 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
6ad86d1334
commit
834a332613
1 changed files with 10 additions and 2 deletions
12
newbrt/txn.c
12
newbrt/txn.c
|
@ -786,10 +786,18 @@ toku_txn_get_state(TOKUTXN txn) {
|
|||
|
||||
#include <valgrind/drd.h>
|
||||
|
||||
void __attribute__((__constructor__)) toku_txn_drd_ignore(void);
|
||||
void __attribute__((__constructor__)) toku_txn_status_drd_ignore(void);
|
||||
void
|
||||
toku_txn_drd_ignore(void) {
|
||||
toku_txn_status_drd_ignore(void) {
|
||||
DRD_IGNORE_VAR(txn_status);
|
||||
}
|
||||
|
||||
#include <valgrind/helgrind.h>
|
||||
|
||||
void __attribute__((__constructor__)) toku_txn_status_helgrind_ignore(void);
|
||||
void
|
||||
toku_txn_status_helgrind_ignore(void) {
|
||||
VALGRIND_HG_DISABLE_CHECKING(&txn_status, sizeof txn_status);
|
||||
}
|
||||
|
||||
#undef STATUS_VALUE
|
||||
|
|
Loading…
Add table
Reference in a new issue