Skip to content

Instantly share code, notes, and snippets.

@jd
Created July 11, 2013 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jd/5977213 to your computer and use it in GitHub Desktop.
Save jd/5977213 to your computer and use it in GitHub Desktop.
% git diff
diff --git a/ceilometer/storage/impl_mongodb.py b/ceilometer/storage/impl_mongodb.py
index 4580833..84bd8fc 100644
--- a/ceilometer/storage/impl_mongodb.py
+++ b/ceilometer/storage/impl_mongodb.py
@@ -288,6 +288,8 @@ class Connection(base.Connection):
self.db.clear()
else:
self.conn.drop_database(self.db)
+ import time
+ time.sleep(5)
@staticmethod
def _parse_connection_url(url):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment