Skip to content

Commit

Permalink
Merge pull request elastic#70 from talien/f/run-id-is-same-run-fix
Browse files Browse the repository at this point in the history
run-id: Fixed run_id_is_same_run functionality.
  • Loading branch information
algernon committed Jan 16, 2014
2 parents a517d0f + 4fa0ffb commit 10e2d8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/run-id.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ run_id_get(void)
gboolean
run_id_is_same_run(gint other_id)
{
return cached_run_id != other_id;
return cached_run_id == other_id;
};

void
Expand Down
2 changes: 1 addition & 1 deletion lib/tests/test_runid.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ test_run_id__is_same_run__differs_when_not_same_run(void)

run_id_init(state);
int prev_run_id = run_id_get();
persist_state_cancel(state);
persist_state_commit(state);
persist_state_free(state);

state = persist_state_new("test_run_id.persist");
Expand Down

0 comments on commit 10e2d8c

Please sign in to comment.