Skip to content
Open

Han #81

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions contrib/deneva/concurrency_control/occ.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
#include "mem_alloc.h"
#include "row_occ.h"
#include "txn.h"
#include "unistd.h"

#define QUERY_EXECUTION_INTERVAL 100

set_ent::set_ent() {
set_size = 0;
Expand All @@ -48,6 +51,9 @@ RC OptCC::validate(TxnManager * txn) {
rc = central_validate(txn);
#endif
INC_STATS(txn->get_thd_id(),occ_validate_time,get_sys_clock() - starttime);

// Add to history
usleep(QUERY_EXECUTION_INTERVAL * 1000); // ms->us
return rc;
}

Expand All @@ -57,6 +63,8 @@ void OptCC::finish(RC rc, TxnManager * txn) {
#else
central_finish(rc,txn);
#endif
//Add to history
usleep(QUERY_EXECUTION_INTERVAL * 1000); // ms->us
}

RC OptCC::per_row_validate(TxnManager *txn) {
Expand Down
3 changes: 3 additions & 0 deletions contrib/deneva/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
#define SAVE_HISTROY_WITH_EMPTY_OPT false
#define DYNAMIC_SEQ_LEN false

//Execution Interval /TXN
#define QUERY_EXECUTION_INTERVAL 100 //ms

//InputActionSequenceCreator
#define INPUT_FILE_PATH "./input.txt"

Expand Down
Empty file added han.ini
Empty file.