Refresh both read and write indices during refresh()
authorJonathan Griffin <jgriffin@mozilla.com>
Fri, 24 Jun 2011 14:18:56 -0700
changeset 37 d04bff5fca62eb243f0d12ea0564356e0af06c29
parent 36 b87730b654132d4c0bf691c57b34e632beedc95e
child 38 cd11afd7e9bfaf6499d0d7770ccfde3d5d54ff70
push id38
push userjgriffin@mozilla.com
push dateFri, 24 Jun 2011 21:19:00 +0000
Refresh both read and write indices during refresh()
mozautoeslib/eslib.py
--- a/mozautoeslib/eslib.py
+++ b/mozautoeslib/eslib.py
@@ -314,10 +314,10 @@ class ESLib(object):
 
   def delete_index(self):
     try:
       return self.connection.delete_index(self.write_index)
     except Exception:
       pass
 
   def refresh_index(self):
-    self.connection.refresh(indexes=[self.write_index])
+    self.connection.refresh(indexes=[self.write_index, self.read_index])