wait for rethinkdb indexes to be ready

This commit is contained in:
Noah Levitt 2017-10-06 16:57:39 -07:00
parent 0de10791aa
commit 908988c4f0
2 changed files with 2 additions and 1 deletions

View File

@ -49,7 +49,7 @@ except:
setuptools.setup(
name='warcprox',
version='2.2b1.dev102',
version='2.2b1.dev103',
description='WARC writing MITM HTTP/S proxy',
url='https://github.com/internetarchive/warcprox',
author='Noah Levitt',

View File

@ -113,6 +113,7 @@ class RethinkCaptures:
[r.row["abbr_canon_surt"], r.row["timestamp"]]).run()
self.rr.table(self.table).index_create("sha1_warc_type", [
r.row["sha1base32"], r.row["warc_type"], r.row["bucket"]]).run()
self.rr.table(self.table).index_wait().run()
def find_response_by_digest(self, algo, raw_digest, bucket="__unspecified__"):
if algo != "sha1":