Revision e0525d86 snf-pithos-backend/pithos/backends/lib/sqlalchemy/node.py
b/snf-pithos-backend/pithos/backends/lib/sqlalchemy/node.py | ||
---|---|---|
725 | 725 |
def version_create(self, node, hash, size, type, source, muser, uuid, |
726 | 726 |
checksum, cluster=0, |
727 | 727 |
update_statistics_ancestors_depth=None, |
728 |
available=True): |
|
728 |
available=True, map_check_timestamp=None):
|
|
729 | 729 |
"""Create a new version from the given properties. |
730 | 730 |
Return the (serial, mtime) of the new version. |
731 | 731 |
""" |
... | ... | |
734 | 734 |
s = self.versions.insert().values( |
735 | 735 |
node=node, hash=hash, size=size, type=type, source=source, |
736 | 736 |
mtime=mtime, muser=muser, uuid=uuid, checksum=checksum, |
737 |
cluster=cluster, available=available) |
|
737 |
cluster=cluster, available=available, |
|
738 |
map_check_timestamp=map_check_timestamp) |
|
738 | 739 |
serial = self.conn.execute(s).inserted_primary_key[0] |
739 | 740 |
self.statistics_update_ancestors(node, 1, size, mtime, cluster, |
740 | 741 |
update_statistics_ancestors_depth) |
Also available in: Unified diff