assign sequence numbers after initial processing
authorBrian Norris <banorris@uci.edu>
Wed, 3 Oct 2012 00:54:26 +0000 (17:54 -0700)
committerBrian Norris <banorris@uci.edu>
Wed, 3 Oct 2012 01:00:21 +0000 (18:00 -0700)
commitf8bac60ca108ab3d7729c0254ff80819e6d8c121
tree2a173e5c5b2895c5f81f2967221268f3258e8529
parentbad8cc4598438f8b8d9e8fa210e2790f92c9ec44
assign sequence numbers after initial processing

When re-ordering the execution of JOIN and LOCK operations (e.g., when
they attempt to execute when not enabled), the sequence numbers became
out of order. Also, RMW operations would cause sequence numbers to jump
by 2 every time.

This fix arranges initialization such that a ModelAction is only
assigned a sequence number after it passes some initial checks to ensure
that it will be executed and utilized immediately. Otherwise, it will
either be discarded or held pending until it is enabled.
action.cc
action.h
model.cc
model.h