diff options
author | Linus Nordberg <linus@nordu.net> | 2015-05-29 17:44:22 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2015-05-29 17:44:22 +0200 |
commit | c14d572f160f05e3d532714ad3b62c0b20b03aa1 (patch) | |
tree | f878ee42e0ccf81323d55cceeeb6823b6cddad58 /tools/merge.py | |
parent | d9df4af0fcc91e1988a411892bba0b792ce62427 (diff) | |
parent | 42eebf1c68849b1367a8e87757f8019732058c50 (diff) |
Merge remote-tracking branch 'refs/remotes/map/fsynclogorder'
Diffstat (limited to 'tools/merge.py')
-rwxr-xr-x | tools/merge.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/merge.py b/tools/merge.py index b426039..8766491 100755 --- a/tools/merge.py +++ b/tools/merge.py @@ -73,6 +73,11 @@ def add_to_logorder(key): f.write(base64.b16encode(key) + "\n") f.close() +def fsync_logorder(): + f = open(logorderfile, "a") + os.fsync(f.fileno()) + f.close() + def get_new_entries(node, baseurl): try: result = http_request(baseurl + "ct/storage/fetchnewentries", key=own_key, verifynode=node, publickeydir=paths["publickeys"]) @@ -228,6 +233,7 @@ for storagenode in storagenodes: logorder.append(hash) certsinlog.add(hash) added_entries += 1 +fsync_logorder() timing_point(timing, "add entries") print "added", added_entries, "entries" |