Commit 382f1134 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Add a missing raise to hide exceptions in dropPartition() and fix a wrong query;

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1384 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 1692db8a
......@@ -325,10 +325,11 @@ class MySQLDatabaseManager(DatabaseManager):
try:
q("""DELETE FROM obj WHERE MOD(oid, %d) = %d""" %
(num_partitions, offset))
q("""DELETE FROM trans WHERE MOD(oid, %d) = %d""" %
q("""DELETE FROM trans WHERE MOD(tid, %d) = %d""" %
(num_partitions, offset))
except:
self.rollback()
raise
self.commit()
def dropUnfinishedData(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment