Skip to content

Commit

Permalink
Fix bug causing incorrect update of modified counter in the system st…
Browse files Browse the repository at this point in the history
…orage
  • Loading branch information
mcopik committed May 1, 2023
1 parent af02c74 commit 107aaa5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion functions/aws/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,9 @@ def commit_and_unlock(self, system_storage: SystemStorage) -> Tuple[bool, dict]:
logging.info(f"Finished commit preparation")

begin_commit = time.time()
if not system_storage.commit_node(self._system_node, self._timestamp):
if not system_storage.commit_node(
self._system_node, self._timestamp, set([NodeDataType.MODIFIED])
):
return (False, {"status": "failure", "reason": "unknown"})
end_commit = time.time()
logging.info(f"Finished commit")
Expand Down

0 comments on commit 107aaa5

Please sign in to comment.