Skip to content

Commit

Permalink
update all no_bump to bumpId following code review
Browse files Browse the repository at this point in the history
  • Loading branch information
nuclearkatie committed Sep 12, 2024
1 parent 8abc7a7 commit ac72e6a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/res_tracker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ void ResTracker::Create(Agent* creator) {

parent1_ = 0;
parent2_ = 0;
bool no_bump = true;
Record(no_bump);
bool bumpId = false;
Record(bumpId);
ctx_->NewDatum("ResCreators")
->AddVal("ResourceId", res_->state_id())
->AddVal("AgentId", creator->id())
Expand Down Expand Up @@ -83,8 +83,8 @@ void ResTracker::Package(ResTracker* parent) {

// Resource was just created, with packaging info, and assigned a state id.
// Do not need to bump again
bool no_bump = true;
Record(no_bump);
bool bumpId = false;
Record(bumpId);
} else {
// Resource was not just created. It is being re-packaged. It needs to be
// bumped to get a new state id.
Expand All @@ -96,8 +96,8 @@ void ResTracker::Package(ResTracker* parent) {

}

void ResTracker::Record(bool no_bump) {
if (!no_bump) {
void ResTracker::Record(bool bumpId) {
if (bumpId) {
res_->BumpStateId();
}
ctx_->NewDatum("Resources")
Expand Down

0 comments on commit ac72e6a

Please sign in to comment.